Fix ACL and archived REST endpoints (#1111)

Fix ACL and archived REST endpoints
This commit is contained in:
Julius Härtl
2019-06-30 13:48:02 +02:00
committed by GitHub
8 changed files with 21 additions and 16 deletions

View File

@@ -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());
}

View File

@@ -57,7 +57,7 @@ class BoardTest extends TestCase {
$acl->setId(1);
$board = $this->createBoard();
$board->setAcl(array($acl));
$result = $board->getAcl()[1];
$result = $board->getAcl()[0];
$this->assertEquals($acl, $result);
}
public function testSetShared() {

View File

@@ -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() {