From 37425d45a621929bfa209f84f101ac8cd42b0d06 Mon Sep 17 00:00:00 2001 From: dalmond Date: Mon, 22 Aug 2016 18:37:34 +0100 Subject: Unit Test Issues Resolved --- tests/units/Action/TaskAssignColorSwimlaneTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/units/Action/TaskAssignColorSwimlaneTest.php') diff --git a/tests/units/Action/TaskAssignColorSwimlaneTest.php b/tests/units/Action/TaskAssignColorSwimlaneTest.php index 898838da..811ffac3 100644 --- a/tests/units/Action/TaskAssignColorSwimlaneTest.php +++ b/tests/units/Action/TaskAssignColorSwimlaneTest.php @@ -28,6 +28,10 @@ class TaskAssignColorSwimlaneTest extends Base ) )); + $task = $taskFinderModel->getById(1); + $this->assertNotEmpty($task); + $this->assertNotEquals('red', $task['color_id']); + $action = new TaskAssignColorSwimlane($this->container); $action->setProjectId(1); $action->setParam('color_id', 'red'); @@ -40,7 +44,7 @@ class TaskAssignColorSwimlaneTest extends Base $this->assertEquals('red', $task['color_id']); } - public function testWithWrongCategory() + public function testWithWrongSwimlane() { $projectModel = new ProjectModel($this->container); $taskCreationModel = new TaskCreationModel($this->container); -- cgit v1.2.3