Skip to content

Commit

Permalink
Add reset message queues before scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiidonii committed Oct 20, 2024
1 parent 42396f5 commit 3be5013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Context/TransportRetriever.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getAllTransports(): array
{
$transports = [];

foreach ($this->receiverLocator->getProvidedServices() as $name => $service) {
foreach ($this->receiverLocator->getProvidedServices() as $name) {
$transports[$name] = $this->receiverLocator->get($name);
}

Expand Down
1 change: 1 addition & 0 deletions tests/MessengerContextTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function testClearMessenger(): void
$serviceProvider
->expects(self::once())
->method('get')
->with('messenger.transport.test')
->willReturn($this->inMemoryTransport);

$this->inMemoryTransport
Expand Down

0 comments on commit 3be5013

Please sign in to comment.