From 3b7ac0c94d473b9458d39e4d0b1d4d33cd31c379 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Thu, 13 Sep 2018 12:24:06 +0200 Subject: [PATCH] Change visibility to private Signed-off-by: Daniel Kesselberg --- lib/private/Setup.php | 2 +- tests/lib/SetupTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 4b6f2d54583..d5ccde6bba3 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -438,7 +438,7 @@ class Setup { * @return string * @throws InvalidArgumentException when invalid value for overwrite.cli.url */ - public static function findWebRoot(SystemConfig $config): string { + private static function findWebRoot(SystemConfig $config): string { // For CLI read the value from overwrite.cli.url if (\OC::$CLI) { $webRoot = $config->getValue('overwrite.cli.url', ''); diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php index fc9def6e1c3..628f9393c15 100644 --- a/tests/lib/SetupTest.php +++ b/tests/lib/SetupTest.php @@ -147,7 +147,7 @@ class SetupTest extends \Test\TestCase { \OC::$CLI = true; try { - $webRoot = $this->setupClass::findWebRoot($this->config); + $webRoot = self::invokePrivate($this->setupClass, 'findWebRoot', [$this->config]); } catch (\InvalidArgumentException $e) { $webRoot = false; }