summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-20 21:47:23 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-20 21:47:23 -0400
commit3dd20c9c78e61028a4c7db232c7b2b30662a2987 (patch)
tree74f07dac8b8a41d2834e38f239f5527d5f455650 /tests
parent7b100cc57b58a1ef5c2c6cef28904e1ba79f0c49 (diff)
Rename CommentModel::EVENT_REMOVE to CommentModel::EVENT_DELETE
Diffstat (limited to 'tests')
-rw-r--r--tests/units/Job/CommentEventJobTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/units/Job/CommentEventJobTest.php b/tests/units/Job/CommentEventJobTest.php
index 88742feb..8571af8e 100644
--- a/tests/units/Job/CommentEventJobTest.php
+++ b/tests/units/Job/CommentEventJobTest.php
@@ -32,7 +32,7 @@ class CommentEventJobTest extends Base
{
$this->container['dispatcher']->addListener(CommentModel::EVENT_CREATE, function() {});
$this->container['dispatcher']->addListener(CommentModel::EVENT_UPDATE, function() {});
- $this->container['dispatcher']->addListener(CommentModel::EVENT_REMOVE, function() {});
+ $this->container['dispatcher']->addListener(CommentModel::EVENT_DELETE, function() {});
$commentModel = new CommentModel($this->container);
$taskCreationModel = new TaskCreationModel($this->container);
@@ -47,6 +47,6 @@ class CommentEventJobTest extends Base
$called = $this->container['dispatcher']->getCalledListeners();
$this->assertArrayHasKey(CommentModel::EVENT_CREATE.'.closure', $called);
$this->assertArrayHasKey(CommentModel::EVENT_UPDATE.'.closure', $called);
- $this->assertArrayHasKey(CommentModel::EVENT_REMOVE.'.closure', $called);
+ $this->assertArrayHasKey(CommentModel::EVENT_DELETE.'.closure', $called);
}
}