瀏覽代碼

Restore previous state for OC::$CLI

Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
tags/v15.0.0beta1
Daniel Kesselberg 5 年之前
父節點
當前提交
fabd3e7ba1
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3
    0
      tests/lib/SetupTest.php

+ 3
- 0
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);
}


Loading…
取消
儲存