瀏覽代碼
Restore previous state for OC::$CLI
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v15.0.0beta1
Daniel Kesselberg
5 年之前
No account linked to committer's email address
|
|
@@ -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); |
|
|
|
} |
|
|
|
|