Split Board model into multiple classes

This commit is contained in:
Frederic Guillot
2016-02-20 15:08:18 -05:00
parent 8383252286
commit fc468088c3
39 changed files with 511 additions and 655 deletions

View 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']);
}
}