mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
test: Speed up comments test
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
c45170d787
commit
0d79156bb2
1 changed files with 2 additions and 0 deletions
|
|
@ -1073,6 +1073,7 @@ class ManagerTest extends TestCase {
|
|||
* @return array<string, IComment>
|
||||
*/
|
||||
private function proccessComments(array $data): array {
|
||||
$this->connection->beginTransaction();
|
||||
/** @var array<string, IComment> $comments */
|
||||
$comments = [];
|
||||
foreach ($data as $comment) {
|
||||
|
|
@ -1088,6 +1089,7 @@ class ManagerTest extends TestCase {
|
|||
$comment = $this->testSave($message, $actorId, $verb, $parentId, $id);
|
||||
$comments[$comment->getMessage() . '#' . $comment->getActorId()] = $comment;
|
||||
}
|
||||
$this->connection->commit();
|
||||
return $comments;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue