Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusjunges committed Aug 18, 2024
1 parent f086e92 commit 6e154b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/KafkaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public function it_can_publish_messages_asynchronously(): void
->getMock();

$mockedProducer = m::mock(Producer::class)
->shouldReceive('newTopic')
->andReturn($mockedProducerTopic)
->shouldReceive('newTopic')->with('test')->twice()->andReturn($mockedProducerTopic)
->shouldReceive('poll')->twice()
->shouldReceive('flush')->once()
->andReturn(RD_KAFKA_RESP_ERR_NO_ERROR)
Expand Down

0 comments on commit 6e154b0

Please sign in to comment.