diff --git a/tests/unit/Service/BoardServiceTest.php b/tests/unit/Service/BoardServiceTest.php index 203442b57..b5949bc81 100644 --- a/tests/unit/Service/BoardServiceTest.php +++ b/tests/unit/Service/BoardServiceTest.php @@ -204,6 +204,7 @@ class BoardServiceTest extends TestCase { public function testDelete() { $board = new Board(); $board->setOwner('admin'); + $board->setDeletedAt(0); $this->boardMapper->expects($this->once()) ->method('find') ->willReturn($board); @@ -213,7 +214,7 @@ class BoardServiceTest extends TestCase { 'admin' => 'admin', ]); $boardDeleted = clone $board; - $board->setDeletedAt(1); + $boardDeleted->setDeletedAt(1); $this->boardMapper->expects($this->once()) ->method('update') ->willReturn($boardDeleted);