Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b2d6bc1

Browse files
committed
Expect envelope in the test
1 parent 1ea43eb commit b2d6bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Tests/Middleware/HandleMessageMiddlewareTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testItCallsTheHandlerAndNextMiddleware()
3232
DummyMessage::class => array($handler),
3333
)));
3434

35-
$handler->expects($this->once())->method('__invoke')->with($message);
35+
$handler->expects($this->once())->method('__invoke')->with($message, $envelope);
3636

3737
$middleware->handle($envelope, $this->getStackMock());
3838
}

0 commit comments

Comments
 (0)