]> git.mxchange.org Git - friendica.git/commitdiff
Moved class call
authorMichael <heluecht@pirati.ca>
Fri, 15 May 2020 19:26:52 +0000 (19:26 +0000)
committerMichael <heluecht@pirati.ca>
Fri, 15 May 2020 19:26:52 +0000 (19:26 +0000)
tests/DatabaseTestTrait.php
tests/Util/Database/StaticDatabase.php

index 9a0152026a1423102c180b3bd82592d6450ab87b..d8a5c165a4f99f09042d4186180d7f5f9a3c3dc6 100644 (file)
@@ -22,7 +22,6 @@
 namespace Friendica\Test;
 
 use Friendica\Database\Database;
-use Friendica\Database\DBStructure;
 use Friendica\Test\Util\Database\StaticDatabase;
 
 /**
@@ -38,10 +37,6 @@ trait DatabaseTestTrait
                // Start the first, outer transaction
                StaticDatabase::getGlobConnection()->beginTransaction();
 
-               StaticDatabase::setTestmode(true);
-
-               DBStructure::checkInitialValues();
-
                parent::setUp();
        }
 
index f2ed6c700e76d97860aeea939d3a6fe052b67951..38466c65bd51034ca96c2eaeaa3447c609c1704a 100644 (file)
@@ -22,6 +22,7 @@
 namespace Friendica\Test\Util\Database;
 
 use Friendica\Database\Database;
+use Friendica\Database\DBStructure;
 use PDO;
 use PDOException;
 
@@ -57,6 +58,10 @@ class StaticDatabase extends Database
                $this->connection = self::$staticConnection;
                $this->connected = true;
 
+               $this->setTestmode(true);
+
+               DBStructure::checkInitialValues();
+
                return $this->connected;
        }