Skip to content

Commit a03946c

Browse files
theohollluka-nextcloud
authored andcommitted
Update test in BoardMapperTest.php to only check for the board it created
Signed-off-by: Theo Hollweg <thollweg@mailbox.org>
1 parent 152ec67 commit a03946c

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

tests/unit/Db/BoardMapperTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ public function testFindAllToDelete() {
154154

155155
$actual = $this->boardMapper->findToDelete();
156156
$this->boards[0]->resetUpdatedFields();
157-
$this->assertEquals([$this->boards[0]], $actual);
157+
158+
$filteredActual = array_values(array_filter($actual, function ($board) {
159+
return $board->getId() === $this->boards[0]->getId();
160+
}));
161+
162+
$this->assertEquals([$this->boards[0]], $filteredActual);
158163

159164
$this->boards[0]->setDeletedAt(0);
160165
$this->boardMapper->update($this->boards[0]);

0 commit comments

Comments
 (0)