diff options
Diffstat (limited to 'tests/units/ActionTaskAssignSpecificUserTest.php')
-rw-r--r-- | tests/units/ActionTaskAssignSpecificUserTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/units/ActionTaskAssignSpecificUserTest.php b/tests/units/ActionTaskAssignSpecificUserTest.php index 3a919978..6fd454d5 100644 --- a/tests/units/ActionTaskAssignSpecificUserTest.php +++ b/tests/units/ActionTaskAssignSpecificUserTest.php @@ -9,7 +9,7 @@ class ActionTaskAssignSpecificUser extends Base { public function testBadProject() { - $action = new Action\TaskAssignSpecificUser(3, new Task($this->db, $this->event)); + $action = new Action\TaskAssignSpecificUser(3, new Task($this->registry)); $action->setParam('column_id', 5); $event = array( @@ -24,7 +24,7 @@ class ActionTaskAssignSpecificUser extends Base public function testBadColumn() { - $action = new Action\TaskAssignSpecificUser(3, new Task($this->db, $this->event)); + $action = new Action\TaskAssignSpecificUser(3, new Task($this->registry)); $action->setParam('column_id', 5); $event = array( @@ -38,13 +38,13 @@ class ActionTaskAssignSpecificUser extends Base public function testExecute() { - $action = new Action\TaskAssignSpecificUser(1, new Task($this->db, $this->event)); + $action = new Action\TaskAssignSpecificUser(1, new Task($this->registry)); $action->setParam('column_id', 2); $action->setParam('user_id', 1); // We create a task in the first column - $t = new Task($this->db, $this->event); - $p = new Project($this->db, $this->event); + $t = new Task($this->registry); + $p = new Project($this->registry); $this->assertEquals(1, $p->create(array('name' => 'test'))); $this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 1))); |