diff options
Diffstat (limited to 'tests/lib/repair')
-rw-r--r-- | tests/lib/repair/repaircollation.php | 2 | ||||
-rw-r--r-- | tests/lib/repair/repairinnodb.php | 2 | ||||
-rw-r--r-- | tests/lib/repair/repairsqliteautoincrement.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/repair/repaircollation.php b/tests/lib/repair/repaircollation.php index f9d921e88a4..8d609aeed38 100644 --- a/tests/lib/repair/repaircollation.php +++ b/tests/lib/repair/repaircollation.php @@ -48,7 +48,7 @@ class TestRepairCollation extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->connection = \OC_DB::getConnection(); + $this->connection = \OC::$server->getDatabaseConnection(); $this->config = \OC::$server->getConfig(); if (!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySqlPlatform) { $this->markTestSkipped("Test only relevant on MySql"); diff --git a/tests/lib/repair/repairinnodb.php b/tests/lib/repair/repairinnodb.php index e7d2b83c224..5c73b931367 100644 --- a/tests/lib/repair/repairinnodb.php +++ b/tests/lib/repair/repairinnodb.php @@ -28,7 +28,7 @@ class RepairInnoDB extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->connection = \OC_DB::getConnection(); + $this->connection = \OC::$server->getDatabaseConnection(); if (!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySqlPlatform) { $this->markTestSkipped("Test only relevant on MySql"); } diff --git a/tests/lib/repair/repairsqliteautoincrement.php b/tests/lib/repair/repairsqliteautoincrement.php index e3bb110191b..6f0c2cb8d28 100644 --- a/tests/lib/repair/repairsqliteautoincrement.php +++ b/tests/lib/repair/repairsqliteautoincrement.php @@ -38,7 +38,7 @@ class RepairSqliteAutoincrement extends \Test\TestCase { protected function setUp() { parent::setUp(); - $this->connection = \OC_DB::getConnection(); + $this->connection = \OC::$server->getDatabaseConnection(); $this->config = \OC::$server->getConfig(); if (!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\SqlitePlatform) { $this->markTestSkipped("Test only relevant on Sqlite"); |