summaryrefslogtreecommitdiff
path: root/tests/integration/BoardProcedureTest.php
diff options
context:
space:
mode:
authori00171 <anton.delitsch@implema.se>2016-06-26 18:35:25 +0200
committeri00171 <anton.delitsch@implema.se>2016-06-26 18:35:25 +0200
commit47039d32c84ba699867920d2c3cb47a34b199b9d (patch)
tree4fbc2ec34889baeab00085e0509055dca7daee6a /tests/integration/BoardProcedureTest.php
parent911be6ed00c1ece5d9ef2c16e80899bb7bffad67 (diff)
parentc110dffefe259c13e60193fb81ebb9d4b79504de (diff)
Merge branch 'master' of https://github.com/fguillot/kanboard
Diffstat (limited to 'tests/integration/BoardProcedureTest.php')
-rw-r--r--tests/integration/BoardProcedureTest.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/integration/BoardProcedureTest.php b/tests/integration/BoardProcedureTest.php
new file mode 100644
index 00000000..273e93c7
--- /dev/null
+++ b/tests/integration/BoardProcedureTest.php
@@ -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']);
+ }
+}