Update API tests

This commit is contained in:
kiswa 2016-11-23 15:06:24 +00:00
parent c3c61c3e86
commit b7f4ccd929
2 changed files with 9 additions and 1 deletions

View File

@ -107,10 +107,13 @@ class DataMock {
$board->issue_trackers = [];
$board->users = [];
$column = self::getColumn();
$column = new stdClass();
$column->id = 0;
$column->name = 'test';
$column->position = 0;
$column->board_id = 0;
$column->tasks = [];
$board->columns[] = $column;
return $board;

View File

@ -189,6 +189,8 @@ class BoardsTest extends PHPUnit_Framework_TestCase {
$board->columns[] = $column;
$board->columns[0]->name = 'edited';
$args = [];
$args['id'] = $board->id;
@ -202,7 +204,10 @@ class BoardsTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('success', $response->status);
$board = $response->data[1][0];
var_dump($board);
return;
$this->assertEquals(2, count($board->columns));
$this->assertEquals('edited', $board->columns[0]->name);
$this->boards = new Boards(new ContainerMock());
$request->payload = new stdClass();