diff --git a/tests/unit/Db/BoardMapperTest.php b/tests/unit/Db/BoardMapperTest.php index f11eb0363..896f5bb5f 100644 --- a/tests/unit/Db/BoardMapperTest.php +++ b/tests/unit/Db/BoardMapperTest.php @@ -158,10 +158,7 @@ class BoardMapperTest extends MapperTestUtility { public function testFindWithAcl() { $actual = $this->boardMapper->find($this->boards[0]->getId(), false, true); - $expected = [ - $this->acls[1]->getId() => $this->acls[1], - $this->acls[2]->getId() => $this->acls[2] - ]; + $expected = [$this->acls[1], $this->acls[2]]; $this->assertEquals($expected, $actual->getAcl()); } diff --git a/tests/unit/Service/CardServiceTest.php b/tests/unit/Service/CardServiceTest.php index ab73ebcd6..b2e2db7ad 100644 --- a/tests/unit/Service/CardServiceTest.php +++ b/tests/unit/Service/CardServiceTest.php @@ -197,7 +197,7 @@ class CardServiceTest extends TestCase { $this->cardMapper->expects($this->once())->method('find')->willReturn($card); $this->cardMapper->expects($this->never())->method('update'); $this->expectException(StatusException::class); - $this->cardService->update(123, 'newtitle', 234, 'text', 999, 'foo', 'admin', '2017-01-01 00:00:00', null); + $this->cardService->update(123, 'newtitle', 234, 'text', 999, 'foo', 'admin', '2017-01-01 00:00:00', null, true); } public function testRename() {