diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-11 17:22:10 +0200 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2018-09-11 17:22:10 +0200 |
commit | fabd3e7ba1a7ff903ccba77c9044b802d073b6ad (patch) | |
tree | 823f6c098dac74b318051a84806ebc51d089e502 /tests/lib | |
parent | 603a578a1c9baab2c9eda08d5a316ed25a0163bf (diff) | |
download | nextcloud-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.php | 3 |
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); } |