From 547fbfdb76cf2094a9f75a73bb7eef385ed97cf6 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 7 Jan 2016 10:12:08 +0100 Subject: Remove OC_DB::dropTable --- tests/lib/db/connection.php | 2 +- tests/lib/db/mdb2schemamanager.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lib/db') 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(); -- cgit v1.2.3