Skip to content

Commit 0732a80

Browse files
author
Farhad.Zand
committed
fix test
1 parent da6e421 commit 0732a80

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/Feature/RabbitMQQueueTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ public function testConsumeMethod()
3030
$expectedResult = 'expected result';
3131

3232
// Set up the mock to return the expected result when the consume method is called
33-
$consumerMock->shouldReceive('consume')
34-
->once()
35-
->andReturn($expectedResult);
33+
$consumerMock->expects('consume')
34+
->andReturns($expectedResult);
3635

3736
// Call the consume method on the mock
3837
$result = $consumerMock->consume();

0 commit comments

Comments
 (0)