summaryrefslogtreecommitdiffstats
path: root/tests/lib/repair/repaircollation.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/repair/repaircollation.php')
-rw-r--r--tests/lib/repair/repaircollation.php2
1 files changed, 1 insertions, 1 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");