浏览代码

rename config test to prevent autoloader issue

tags/v8.2RC1
Robin Appelman 8 年前
父节点
当前提交
b50d1aae56
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4
    2
      tests/lib/configtests.php

tests/lib/config.php → tests/lib/configtests.php 查看文件

@@ -6,7 +6,9 @@
* See the COPYING-README file.
*/

class Test_Config extends \Test\TestCase {
namespace Test;

class ConfigTests extends TestCase {
const TESTCONTENT = '<?php $CONFIG=array("foo"=>"bar", "beers" => array("Appenzeller", "Guinness", "Kölsch"), "alcohol_free" => false);';

/** @var array */
@@ -24,7 +26,7 @@ class Test_Config extends \Test\TestCase {
$this->randomTmpDir = \OC_Helper::tmpFolder();
$this->configFile = $this->randomTmpDir.'testconfig.php';
file_put_contents($this->configFile, self::TESTCONTENT);
$this->config = new OC\Config($this->randomTmpDir, 'testconfig.php');
$this->config = new \OC\Config($this->randomTmpDir, 'testconfig.php');
}

protected function tearDown() {

正在加载...
取消
保存