Rewrite integration tests to run with Docker containers

This commit is contained in:
Frederic Guillot
2016-06-25 14:34:46 -04:00
parent fc93203e4d
commit 922e0fb6de
49 changed files with 1337 additions and 1637 deletions

View File

@@ -1,17 +1,21 @@
<?php
require_once __DIR__.'/Base.php';
require_once __DIR__.'/BaseIntegrationTest.php';
class BoardTest extends Base
class BoardTest extends BaseIntegrationTest
{
public function testCreateProject()
protected $projectName = 'My project to test board';
public function testAll()
{
$this->assertEquals(1, $this->app->createProject('A project'));
$this->assertCreateTeamProject();
$this->assertGetBoard();
}
public function testGetBoard()
public function assertGetBoard()
{
$board = $this->app->getBoard(1);
$board = $this->app->getBoard($this->projectId);
$this->assertNotNull($board);
$this->assertCount(1, $board);
$this->assertEquals('Default swimlane', $board[0]['name']);