aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Comments/ManagerTest.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lib/Comments/ManagerTest.php b/tests/lib/Comments/ManagerTest.php
index 760f504fc60..75536bec0c7 100644
--- a/tests/lib/Comments/ManagerTest.php
+++ b/tests/lib/Comments/ManagerTest.php
@@ -1099,6 +1099,7 @@ class ManagerTest extends TestCase {
* @return IComment[]
*/
private function proccessComments(array $data): array {
+ $this->connection->beginTransaction();
/** @var IComment[] */
$comments = [];
foreach ($data as $comment) {
@@ -1114,6 +1115,7 @@ class ManagerTest extends TestCase {
$comment = $this->testSave($message, $actorId, $verb, $parentId, $id);
$comments[$comment->getMessage() . '#' . $comment->getActorId()] = $comment;
}
+ $this->connection->commit();
return $comments;
}