From fabd3e7ba1a7ff903ccba77c9044b802d073b6ad Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 11 Sep 2018 17:22:10 +0200 Subject: Restore previous state for OC::$CLI Signed-off-by: Daniel Kesselberg --- tests/lib/SetupTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/lib') diff --git a/tests/lib/SetupTest.php b/tests/lib/SetupTest.php index 40481de8f1d..fc9def6e1c3 100644 --- a/tests/lib/SetupTest.php +++ b/tests/lib/SetupTest.php @@ -138,6 +138,8 @@ class SetupTest extends \Test\TestCase { * @param $expected */ public function testFindWebRootCli($url, $expected) { + $cliState = \OC::$CLI; + $this->config ->expects($this->once()) ->method('getValue') @@ -150,6 +152,7 @@ class SetupTest extends \Test\TestCase { $webRoot = false; } + \OC::$CLI = $cliState; $this->assertEquals($webRoot, $expected); } -- cgit v1.2.3