Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6bedfd

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

File tree

1 file changed

+4
-1
lines changed
Filter options

1 file changed

+4
-1
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php
+4-1Lines changed: 4 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.