diff options
Diffstat (limited to 'tests/lib/db/mdb2schemamanager.php')
-rw-r--r-- | tests/lib/db/mdb2schemamanager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/db/mdb2schemamanager.php b/tests/lib/db/mdb2schemamanager.php index e194e701d84..fd412bdec2d 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(); @@ -32,7 +32,7 @@ class MDB2SchemaManager extends \Test\TestCase { public function testAutoIncrement() { - $connection = \OC_DB::getConnection(); + $connection = \OC::$server->getDatabaseConnection(); if ($connection->getDatabasePlatform() instanceof OraclePlatform) { $this->markTestSkipped('Adding auto increment columns in Oracle is not supported.'); } |