diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-11-10 22:59:50 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-11-19 14:53:51 +0100 |
commit | cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f (patch) | |
tree | 2a3ec09e86f13885483286ba5f5213201eb4ee67 /tests/lib/config.php | |
parent | 76ebd3a050cb3c84b958f071ec559e6bc9cbc847 (diff) | |
download | nextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.tar.gz nextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.zip |
Make root tests extend the \Test\TestCase
Diffstat (limited to 'tests/lib/config.php')
-rw-r--r-- | tests/lib/config.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/lib/config.php b/tests/lib/config.php index 180f6b1649b..9dff3aab84f 100644 --- a/tests/lib/config.php +++ b/tests/lib/config.php @@ -6,7 +6,7 @@ * See the COPYING-README file. */ -class Test_Config extends PHPUnit_Framework_TestCase { +class Test_Config extends \Test\TestCase { const TESTCONTENT = '<?php $CONFIG=array("foo"=>"bar", "beers" => array("Appenzeller", "Guinness", "Kölsch"), "alcohol_free" => false);'; /** @var array */ @@ -18,15 +18,18 @@ class Test_Config extends PHPUnit_Framework_TestCase { /** @var string */ private $randomTmpDir; - function setUp() { + protected function setUp() { + parent::setUp(); + $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'); } - public function tearDown() { + protected function tearDown() { unlink($this->configFile); + parent::tearDown(); } public function testGetKeys() { |