summaryrefslogtreecommitdiffstats
path: root/tests/lib/db.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-11-10 22:59:50 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-11-19 14:53:51 +0100
commitcb3a598cdb238f9ce74dce80ef9e59cdfc531a4f (patch)
tree2a3ec09e86f13885483286ba5f5213201eb4ee67 /tests/lib/db.php
parent76ebd3a050cb3c84b958f071ec559e6bc9cbc847 (diff)
downloadnextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.tar.gz
nextcloud-server-cb3a598cdb238f9ce74dce80ef9e59cdfc531a4f.zip
Make root tests extend the \Test\TestCase
Diffstat (limited to 'tests/lib/db.php')
-rw-r--r--tests/lib/db.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/lib/db.php b/tests/lib/db.php
index fb673b8092b..a401aded62a 100644
--- a/tests/lib/db.php
+++ b/tests/lib/db.php
@@ -6,7 +6,7 @@
* See the COPYING-README file.
*/
-class Test_DB extends PHPUnit_Framework_TestCase {
+class Test_DB extends \Test\TestCase {
protected $backupGlobals = FALSE;
protected static $schema_file = 'static://test_db_scheme';
@@ -32,7 +32,9 @@ class Test_DB extends PHPUnit_Framework_TestCase {
*/
private $table4;
- public function setUp() {
+ protected function setUp() {
+ parent::setUp();
+
$dbfile = OC::$SERVERROOT.'/tests/data/db_structure.xml';
$r = '_'.OC_Util::generateRandomBytes(4).'_';
@@ -48,9 +50,11 @@ class Test_DB extends PHPUnit_Framework_TestCase {
$this->table4 = $this->test_prefix.'decimal';
}
- public function tearDown() {
+ protected function tearDown() {
OC_DB::removeDBStructure(self::$schema_file);
unlink(self::$schema_file);
+
+ parent::tearDown();
}
public function testQuotes() {