Added application and project roles validation for API procedure calls
This commit is contained in:
25
tests/integration/BoardProcedureTest.php
Normal file
25
tests/integration/BoardProcedureTest.php
Normal 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']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user