Fix unit tests for board archiving

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-05-17 19:51:06 +02:00
parent 8c04ea8dc9
commit 90eb9ce28e
6 changed files with 31 additions and 17 deletions

View File

@@ -134,11 +134,12 @@ class BoardServiceTest extends \Test\TestCase {
->method('update')
->with($board)
->willReturn($board);
$b = $this->service->update(123, 'MyNewNameBoard', 'ffffff');
$b = $this->service->update(123, 'MyNewNameBoard', 'ffffff', false);
$this->assertEquals($b->getTitle(), 'MyNewNameBoard');
$this->assertEquals($b->getOwner(), 'admin');
$this->assertEquals($b->getColor(), 'ffffff');
$this->assertEquals($b->getArchived(), false);
}
public function testDelete() {