mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-07 15:54:26 +02:00
Fix DBA::lock() testability because of "autocommits"
This commit is contained in:
parent
10e8c5594d
commit
ea4b066df3
3 changed files with 45 additions and 25 deletions
|
@ -34,6 +34,8 @@ trait DatabaseTestTrait
|
|||
StaticDatabase::statConnect($_SERVER);
|
||||
// Rollbacks every DB usage (in case the test couldn't call tearDown)
|
||||
StaticDatabase::statRollback();
|
||||
// Rollback the first, outer transaction just 2 be sure
|
||||
StaticDatabase::getGlobConnection()->rollBack();
|
||||
// Start the first, outer transaction
|
||||
StaticDatabase::getGlobConnection()->beginTransaction();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue