summaryrefslogtreecommitdiffstats
path: root/tests/lib/db/mysqlmigration.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/db/mysqlmigration.php')
-rw-r--r--tests/lib/db/mysqlmigration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/db/mysqlmigration.php b/tests/lib/db/mysqlmigration.php
index 50b9d91d4ee..51e8801dc3b 100644
--- a/tests/lib/db/mysqlmigration.php
+++ b/tests/lib/db/mysqlmigration.php
@@ -22,7 +22,7 @@ class TestMySqlMigration 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");
}