diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-05-25 18:12:27 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-05-25 18:12:27 -0400 |
commit | b6c4c93fe7a8a86f9c2aca6a388cb897c6a968c5 (patch) | |
tree | fec5334559925259b86f96efc5a84e57c10a5a4a /tests/ActionTaskAssignColorUserTest.php | |
parent | 60a45dbb685eb3b810dcced4820afe9d1f1ffe2d (diff) |
Add more tests
Diffstat (limited to 'tests/ActionTaskAssignColorUserTest.php')
-rw-r--r-- | tests/ActionTaskAssignColorUserTest.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/ActionTaskAssignColorUserTest.php b/tests/ActionTaskAssignColorUserTest.php index 769ecc66..04e3172f 100644 --- a/tests/ActionTaskAssignColorUserTest.php +++ b/tests/ActionTaskAssignColorUserTest.php @@ -10,7 +10,6 @@ class ActionTaskAssignColorUser extends Base public function testBadProject() { $action = new Action\TaskAssignColorUser(3, new Task($this->db, $this->event)); - $action->setParam('column_id', 5); $event = array( 'project_id' => 2, @@ -22,24 +21,9 @@ class ActionTaskAssignColorUser extends Base $this->assertFalse($action->execute($event)); } - public function testBadColumn() - { - $action = new Action\TaskAssignColorUser(3, new Task($this->db, $this->event)); - $action->setParam('column_id', 5); - - $event = array( - 'project_id' => 3, - 'task_id' => 3, - 'column_id' => 3, - ); - - $this->assertFalse($action->execute($event)); - } - public function testExecute() { $action = new Action\TaskAssignColorUser(1, new Task($this->db, $this->event)); - $action->setParam('column_id', 2); $action->setParam('user_id', 1); $action->setParam('color_id', 'blue'); |