aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-09-13 12:24:06 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-09-13 12:24:06 +0200
commit3b7ac0c94d473b9458d39e4d0b1d4d33cd31c379 (patch)
tree137936ca4ab003b7f54a7c8b7ca7593469c06b10
parentfabd3e7ba1a7ff903ccba77c9044b802d073b6ad (diff)
downloadnextcloud-server-3b7ac0c94d473b9458d39e4d0b1d4d33cd31c379.tar.gz
nextcloud-server-3b7ac0c94d473b9458d39e4d0b1d4d33cd31c379.zip
Change visibility to private
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rw-r--r--lib/private/Setup.php2
-rw-r--r--tests/lib/SetupTest.php2
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;
}