Browse Source

Restore previous state for OC::$CLI

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v15.0.0beta1
Daniel Kesselberg 5 years ago
parent
commit
fabd3e7ba1
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tests/lib/SetupTest.php

+ 3
- 0
tests/lib/SetupTest.php 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);
}


Loading…
Cancel
Save