Added application and project roles validation for API procedure calls

This commit is contained in:
Frederic Guillot
2016-06-26 10:25:13 -04:00
parent 922e0fb6de
commit 4a230d331e
79 changed files with 1772 additions and 761 deletions

View File

@@ -0,0 +1,25 @@
<?php
require_once __DIR__.'/BaseProcedureTest.php';
class BoardProcedureTest extends BaseProcedureTest
{
protected $projectName = 'My project to test board';
public function testAll()
{
$this->assertCreateTeamProject();
$this->assertGetBoard();
}
public function assertGetBoard()
{
$board = $this->app->getBoard($this->projectId);
$this->assertNotNull($board);
$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']);
}
}