Restore previous state for OC::$CLI
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
603a578a1c
commit
fabd3e7ba1
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue