name = 'Test Board 0'; $board->description = 'This is some description'; $board->createdBy = new NullAccount(1); $id = KanbanBoardMapper::create($board); self::assertGreaterThan(0, $board->getId()); self::assertEquals($id, $board->getId()); $boardR = KanbanBoardMapper::get($board->getId()); self::assertEquals($board->name, $boardR->name); self::assertEquals($board->getStatus(), $boardR->getStatus()); self::assertEquals($board->description, $boardR->description); self::assertEquals($board->createdBy->getId(), $boardR->createdBy->getId()); self::assertEquals($board->createdAt->format('Y-m-d'), $boardR->createdAt->format('Y-m-d')); self::assertEquals($board->getColumns(), $boardR->getColumns()); } /** * @group volume * @group module * @coversNothing */ public function testVolume() : void { for ($i = 1; $i < 30; ++$i) { $text = new Text(); $board = new KanbanBoard(); $board->name = $text->generateText(\mt_rand(3, 7)); $board->description = $text->generateText(\mt_rand(20, 70)); $board->createdBy = new NullAccount(1); $id = KanbanBoardMapper::create($board); } } }