summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/db/migrator.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/db/migrator.php b/tests/lib/db/migrator.php
index 5d85bd98f31..e9b986236b8 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() {