Moved class call

This commit is contained in:
Michael 2020-05-15 19:26:52 +00:00
parent 0b94300f29
commit b2e56d0224
2 changed files with 5 additions and 5 deletions

View 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();
}

View 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;
}