Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix risk tests
Browse files Browse the repository at this point in the history
jleonardolemos committed Dec 5, 2023
1 parent e89bb72 commit 07d98ae
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/Unit/ResolverTest.php
Original file line number Diff line number Diff line change
@@ -37,7 +37,8 @@ public function test_it_should_ack_message()

//assert
$this->channel->shouldReceive('basic_ack')
->with($delivery_tag);
->with($delivery_tag)
->once();

// act
$resolver->ack();
@@ -56,7 +57,8 @@ public function test_it_should_reject_message_without_requeue()

//assert
$this->channel->shouldReceive('basic_nack')
->with($delivery_tag, false, $requeue);
->with($delivery_tag, false, $requeue)
->once();

// act
$resolver->reject($requeue);
@@ -75,7 +77,8 @@ public function test_it_should_reject_message_with_requeue()

//assert
$this->channel->shouldReceive('basic_nack')
->with($delivery_tag, false, $requeue);
->with($delivery_tag, false, $requeue)
->once();

// act
$resolver->reject($requeue);

0 comments on commit 07d98ae

Please sign in to comment.