Restore previous state for OC::$CLI

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
Daniel Kesselberg 2018-09-11 17:22:10 +02:00
parent 603a578a1c
commit fabd3e7ba1
No known key found for this signature in database
GPG key ID: 36E3664E099D0614

View file

@ -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);
}