diff --git a/tests/lib/db/migrator.php b/tests/lib/db/migrator.php index 5d85bd98f3..e9b986236b 100644 --- a/tests/lib/db/migrator.php +++ b/tests/lib/db/migrator.php @@ -22,11 +22,11 @@ class Migrator extends \PHPUnit_Framework_TestCase { private $tableName; public function setUp() { + $this->connection = \OC_DB::getConnection(); if ($this->connection->getDriver() instanceof \Doctrine\DBAL\Driver\OCI8\Driver) { $this->markTestSkipped('DB migration tests arent supported on OCI'); } $this->tableName = 'test_' . uniqid(); - $this->connection = \OC_DB::getConnection(); } public function tearDown() {