]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix unit tests
authorRobin Appelman <icewind@owncloud.com>
Thu, 10 Apr 2014 11:54:50 +0000 (13:54 +0200)
committerRobin Appelman <icewind@owncloud.com>
Tue, 3 Jun 2014 09:18:17 +0000 (11:18 +0200)
tests/lib/db/migrator.php

index 5d85bd98f318ea1f80f8fde1b5420dd97aa2c728..e9b986236b8970901b924aa994a579be8de23911 100644 (file)
@@ -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() {