From 6d2bd7383a8204a85429a88eb7ebe2a36a035455 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 4 Dec 2016 18:43:53 -0500 Subject: Make sure user mention events are serialized before to push in queue --- tests/units/Job/UserMentionJobTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/units') diff --git a/tests/units/Job/UserMentionJobTest.php b/tests/units/Job/UserMentionJobTest.php index 31d0ddbb..4cd4ac9b 100644 --- a/tests/units/Job/UserMentionJobTest.php +++ b/tests/units/Job/UserMentionJobTest.php @@ -90,7 +90,7 @@ class UserMentionJobTest extends Base $this->container['dispatcher']->addListener(TaskModel::EVENT_USER_MENTION, array($this, 'onUserMention')); - $userMentionJob->execute('test @user1 @user2', TaskModel::EVENT_USER_MENTION, $event); + $userMentionJob->execute('test @user1 @user2', TaskModel::EVENT_USER_MENTION, $event->getAll()); $called = $this->container['dispatcher']->getCalledListeners(); $this->assertArrayHasKey(TaskModel::EVENT_USER_MENTION.'.UserMentionJobTest::onUserMention', $called); -- cgit v1.2.3