Split Board model into multiple classes
This commit is contained in:
21
tests/integration/BoardTest.php
Normal file
21
tests/integration/BoardTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
require_once __DIR__.'/Base.php';
|
||||
|
||||
class BoardTest extends Base
|
||||
{
|
||||
public function testCreateProject()
|
||||
{
|
||||
$this->assertEquals(1, $this->app->createProject('A project'));
|
||||
}
|
||||
|
||||
public function testGetBoard()
|
||||
{
|
||||
$board = $this->app->getBoard(1);
|
||||
$this->assertCount(1, $board);
|
||||
$this->assertEquals('Default swimlane', $board[0]['name']);
|
||||
|
||||
$this->assertCount(4, $board[0]['columns']);
|
||||
$this->assertEquals('Ready', $board[0]['columns'][1]['title']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user