diff --git a/packages/admin/tests/Charcoal/Admin/ContainerProvider.php b/packages/admin/tests/Charcoal/Admin/ContainerProvider.php index fea6cebe0..dd0f8b434 100644 --- a/packages/admin/tests/Charcoal/Admin/ContainerProvider.php +++ b/packages/admin/tests/Charcoal/Admin/ContainerProvider.php @@ -28,6 +28,7 @@ use League\CLImate\Util\Output; use League\CLImate\Util\Reader\Stdin; use League\CLImate\Util\UtilFactory; +use League\Event\EventDispatcher; // From 'charcoal-factory' use Charcoal\Factory\GenericFactory as Factory; @@ -96,6 +97,7 @@ public function registerBaseServices(Container $container) $this->registerDatabase($container); $this->registerLogger($container); $this->registerCache($container); + $this->registerEvent($container); } /** @@ -379,6 +381,17 @@ public function registerCache(Container $container) }; } + /** + * Setup event dispatcher. + * + * @param Container $container A DI container. + * @return void + */ + public function registerEvent(Container $container) + { + $container['event/dispatcher'] = new EventDispatcher(); + } + /** * @param Container $container A DI container. * @return void @@ -545,6 +558,7 @@ public function registerActionDependencies(Container $container) $this->registerLogger($container); $this->registerDatabase($container); $this->registerCache($container); + $this->registerEvent($container); $this->registerAdminConfig($container); $this->registerBaseUrl($container);