From 4d7045e7015c85030c9b37137955fa09db1f866f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 10 Apr 2014 13:54:50 +0200 Subject: [PATCH] Fix unit tests --- tests/lib/db/migrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.39.5