diff options
Diffstat (limited to 'tests/lib/dbschema.php')
-rw-r--r-- | tests/lib/dbschema.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/dbschema.php b/tests/lib/dbschema.php index 46d7559acc2..d96f8195770 100644 --- a/tests/lib/dbschema.php +++ b/tests/lib/dbschema.php @@ -51,7 +51,7 @@ class Test_DBSchema extends \Test\TestCase { * @medium */ public function testSchema() { - $platform = \OC_DB::getConnection()->getDatabasePlatform(); + $platform = \OC::$server->getDatabaseConnection()->getDatabasePlatform(); $this->doTestSchemaCreating(); $this->doTestSchemaChanging(); $this->doTestSchemaDumping(); @@ -94,7 +94,7 @@ class Test_DBSchema extends \Test\TestCase { * @param string $table */ public function assertTableNotExist($table) { - $platform = \OC_DB::getConnection()->getDatabasePlatform(); + $platform = \OC::$server->getDatabaseConnection()->getDatabasePlatform(); if ($platform instanceof \Doctrine\DBAL\Platforms\SqlitePlatform) { // sqlite removes the tables after closing the DB $this->assertTrue(true); |