We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da6e421 commit 0732a80Copy full SHA for 0732a80
tests/Feature/RabbitMQQueueTest.php
@@ -30,9 +30,8 @@ public function testConsumeMethod()
30
$expectedResult = 'expected result';
31
32
// Set up the mock to return the expected result when the consume method is called
33
- $consumerMock->shouldReceive('consume')
34
- ->once()
35
- ->andReturn($expectedResult);
+ $consumerMock->expects('consume')
+ ->andReturns($expectedResult);
36
37
// Call the consume method on the mock
38
$result = $consumerMock->consume();
0 commit comments