mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:40:17 +00:00
Moved class call
This commit is contained in:
parent
0b94300f29
commit
b2e56d0224
2 changed files with 5 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue