diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-01-07 10:26:00 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-01-07 14:54:55 +0100 |
commit | 190cc2bb6762c5f505e1e90bd582caa4fecb9cce (patch) | |
tree | e758dbc6da9f106d07146838507988b6a7d9bda1 /tests/lib/dbschema.php | |
parent | fddece9552a4b194cdce8c3916e33fa8597c9008 (diff) | |
download | nextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.tar.gz nextcloud-server-190cc2bb6762c5f505e1e90bd582caa4fecb9cce.zip |
Remove OC_DB::getConnection
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); |