From a76939066b01b9dd39ff44a8d3aa3165dc7b3eaf Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 16 Sep 2014 16:35:43 +0200 Subject: Add more events and notifications for tasks --- tests/units/TaskTest.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/units') diff --git a/tests/units/TaskTest.php b/tests/units/TaskTest.php index 739214fc..98553428 100644 --- a/tests/units/TaskTest.php +++ b/tests/units/TaskTest.php @@ -648,5 +648,9 @@ class TaskTest extends Base // We change the column and the position of our task $this->assertTrue($t->movePosition(1, 1, 1, 1)); $this->assertTrue($this->registry->shared('event')->isEventTriggered(Task::EVENT_MOVE_COLUMN)); + + // We change the assignee + $this->assertTrue($t->update(array('owner_id' => 1, 'id' => 1))); + $this->assertTrue($this->registry->shared('event')->isEventTriggered(Task::EVENT_ASSIGNEE_CHANGE)); } } -- cgit v1.2.3