From 9eeded33f68872515954a2fc177fcb47a9273ae9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 15 Aug 2014 17:23:41 -0700 Subject: Add email notifications --- tests/units/ActionTaskDuplicateAnotherProjectTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/units/ActionTaskDuplicateAnotherProjectTest.php') diff --git a/tests/units/ActionTaskDuplicateAnotherProjectTest.php b/tests/units/ActionTaskDuplicateAnotherProjectTest.php index 0b2e4bd5..4d995b64 100644 --- a/tests/units/ActionTaskDuplicateAnotherProjectTest.php +++ b/tests/units/ActionTaskDuplicateAnotherProjectTest.php @@ -9,7 +9,7 @@ class ActionTaskDuplicateAnotherProject extends Base { public function testBadProject() { - $action = new Action\TaskDuplicateAnotherProject(3, new Task($this->db, $this->event)); + $action = new Action\TaskDuplicateAnotherProject(3, new Task($this->registry)); $action->setParam('column_id', 5); $event = array( @@ -24,7 +24,7 @@ class ActionTaskDuplicateAnotherProject extends Base public function testBadColumn() { - $action = new Action\TaskDuplicateAnotherProject(3, new Task($this->db, $this->event)); + $action = new Action\TaskDuplicateAnotherProject(3, new Task($this->registry)); $action->setParam('column_id', 5); $event = array( @@ -38,11 +38,11 @@ class ActionTaskDuplicateAnotherProject extends Base public function testExecute() { - $action = new Action\TaskDuplicateAnotherProject(1, new Task($this->db, $this->event)); + $action = new Action\TaskDuplicateAnotherProject(1, new Task($this->registry)); // 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' => 'project 1'))); $this->assertEquals(2, $p->create(array('name' => 'project 2'))); $this->assertEquals(1, $t->create(array('title' => 'test', 'project_id' => 1, 'column_id' => 1))); -- cgit v1.2.3