Skip to content

Commit e6bedfd

Browse files
committed
[Messenger] Fix broken mock
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 95b3d0a commit e6bedfd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ private function getTransport(SerializerInterface $serializer = null, Connection
177177

178178
private function createHttpException(): HttpException
179179
{
180-
return new ServerException($this->createMock(ResponseInterface::class));
180+
$response = $this->createMock(ResponseInterface::class);
181+
$response->method('getInfo')->with('http_code')->willReturn(500);
182+
183+
return new ServerException($response);
181184
}
182185
}

0 commit comments

Comments
 (0)