Skip to content

Commit

Permalink
Allow listeners added via config to be compiled in container by makin…
Browse files Browse the repository at this point in the history
…g them factories
  • Loading branch information
AydinHassan committed Mar 10, 2024
1 parent f391aff commit 9a86b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Factory/EventDispatcherFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function testExceptionIsThrownIfEventsListenerContainerEntryNotExist(): v
{
$eventConfig = [
'my-group' => [
'someEvent' => [containerListener('nonExistingContainerEntry')]
'someEvent' => [containerListener('nonExistingContainerEntry')()]
]
];

Expand Down Expand Up @@ -274,7 +274,7 @@ public function testExceptionIsThrownIfMethodDoesNotExistOnContainerEntry(): voi
{
$eventConfig = [
'my-group' => [
'someEvent' => [containerListener('containerEntry', 'notHere')]
'someEvent' => [containerListener('containerEntry', 'notHere')()]
]
];

Expand Down

0 comments on commit 9a86b16

Please sign in to comment.