summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-01-07 10:12:08 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-01-07 14:54:54 +0100
commit547fbfdb76cf2094a9f75a73bb7eef385ed97cf6 (patch)
tree7cb005641c4fa90a1712bb7bb43eb8a56fe0e252 /tests
parent9d3c14c7dd102784a4e1b57ed063cddf59f63f8c (diff)
downloadnextcloud-server-547fbfdb76cf2094a9f75a73bb7eef385ed97cf6.tar.gz
nextcloud-server-547fbfdb76cf2094a9f75a73bb7eef385ed97cf6.zip
Remove OC_DB::dropTable
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/db/connection.php2
-rw-r--r--tests/lib/db/mdb2schemamanager.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/db/connection.php b/tests/lib/db/connection.php
index ab3b48b259f..348a5e31e09 100644
--- a/tests/lib/db/connection.php
+++ b/tests/lib/db/connection.php
@@ -40,7 +40,7 @@ class Connection extends \Test\TestCase {
protected static function dropTestTable()
{
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') !== 'oci') {
- \OC_DB::dropTable('table');
+ \OC::$server->getDatabaseConnection()->dropTable('table');
}
}
diff --git a/tests/lib/db/mdb2schemamanager.php b/tests/lib/db/mdb2schemamanager.php
index e194e701d84..470e385b858 100644
--- a/tests/lib/db/mdb2schemamanager.php
+++ b/tests/lib/db/mdb2schemamanager.php
@@ -24,7 +24,7 @@ class MDB2SchemaManager extends \Test\TestCase {
// do not drop the table for Oracle as it will create a bogus transaction
// that will break the following test suites requiring transactions
if (\OC::$server->getConfig()->getSystemValue('dbtype', 'sqlite') !== 'oci') {
- \OC_DB::dropTable('table');
+ \OC::$server->getDatabaseConnection()->dropTable('table');
}
parent::tearDown();