Refactoring of internal task events

This commit is contained in:
Frederic Guillot
2016-07-19 22:38:30 -04:00
parent d9d3788222
commit 390082aa41
58 changed files with 1210 additions and 468 deletions

View File

@@ -21,8 +21,8 @@ class SubtaskEventJobTest extends Base
{
$this->container['dispatcher']->addListener(SubtaskModel::EVENT_CREATE, function() {});
$SubtaskEventJob = new SubtaskEventJob($this->container);
$SubtaskEventJob->execute(42, SubtaskModel::EVENT_CREATE);
$subtaskEventJob = new SubtaskEventJob($this->container);
$subtaskEventJob->execute(42, SubtaskModel::EVENT_CREATE);
$called = $this->container['dispatcher']->getCalledListeners();
$this->assertEmpty($called);