summaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2018-09-11 17:22:10 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2018-09-11 17:22:10 +0200
commitfabd3e7ba1a7ff903ccba77c9044b802d073b6ad (patch)
tree823f6c098dac74b318051a84806ebc51d089e502 /tests/lib
parent603a578a1c9baab2c9eda08d5a316ed25a0163bf (diff)
downloadnextcloud-server-fabd3e7ba1a7ff903ccba77c9044b802d073b6ad.tar.gz
nextcloud-server-fabd3e7ba1a7ff903ccba77c9044b802d073b6ad.zip
Restore previous state for OC::$CLI
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
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);
}