summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-09-16 16:35:43 +0200
committerFrédéric Guillot <fred@kanboard.net>2014-09-16 16:35:43 +0200
commita76939066b01b9dd39ff44a8d3aa3165dc7b3eaf (patch)
tree0687c85ec5714f82ad56000e17f69b373736ffd3 /tests/units
parentaca4207a94200ce4033de57baabc69afe5e3804e (diff)
Add more events and notifications for tasks
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/TaskTest.php4
1 files changed, 4 insertions, 0 deletions
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));
}
}