summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/SetupTest.php3
1 files changed, 3 insertions, 0 deletions
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);
}