Skip to content
This repository was archived by the owner on Sep 6, 2025. It is now read-only.

Commit 36cf73b

Browse files
committed
Updated tests
1 parent a94294f commit 36cf73b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/CommandBus/EventDispatchingCommandBusTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use HelloFresh\Engine\CommandBus\Exception\MissingHandlerException;
88
use HelloFresh\Engine\CommandBus\Handler\InMemoryLocator;
99
use HelloFresh\Engine\CommandBus\SimpleCommandBus;
10-
use HelloFresh\Engine\EventDispatcher\EventDispatcher;
10+
use HelloFresh\Engine\EventDispatcher\InMemoryDispatcher;
1111
use HelloFresh\Tests\Engine\Mock\InvalidHandler;
1212
use HelloFresh\Tests\Engine\Mock\TestCommand;
1313
use HelloFresh\Tests\Engine\Mock\TestHandler;
@@ -28,7 +28,7 @@ protected function setUp()
2828
{
2929
$this->locator = new InMemoryLocator();
3030
$simpleCommandBus = new SimpleCommandBus($this->locator);
31-
$eventDispatcher = new EventDispatcher();
31+
$eventDispatcher = new InMemoryDispatcher();
3232
$this->commandBus = new EventDispatchingCommandBus($simpleCommandBus, $eventDispatcher);
3333
}
3434

tests/EventDispatcher/EventDispatcherTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace HelloFresh\Tests\Engine\EventBus;
44

5-
use HelloFresh\Engine\EventDispatcher\EventDispatcher;
5+
use HelloFresh\Engine\EventDispatcher\InMemoryDispatcher;
66
use HelloFresh\Engine\EventDispatcher\EventDispatcherInterface;
77
use HelloFresh\Tests\Engine\Mock\TracableEventListener;
88

@@ -17,7 +17,7 @@ class EventDispatcherTest extends \PHPUnit_Framework_TestCase
1717

1818
public function setUp()
1919
{
20-
$this->dispatcher = new EventDispatcher();
20+
$this->dispatcher = new InMemoryDispatcher();
2121
$this->listener1 = new TracableEventListener();
2222
$this->listener2 = new TracableEventListener();
2323
$this->assertFalse($this->listener1->isCalled());

0 commit comments

Comments
 (0)