Skip to content
Snippets Groups Projects
Commit b50d1aae authored by Robin Appelman's avatar Robin Appelman Committed by Morris Jobke
Browse files

rename config test to prevent autoloader issue

parent 9a010cc8
Branches
No related tags found
No related merge requests found
......@@ -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() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment