Skip to content

Commit

Permalink
Add more test cases for looping through all messages
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkamp committed Jan 31, 2020
1 parent 9acbaa4 commit 644e3df
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/integration/MailhogClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public function it_should_throw_exception_when_there_is_no_last_message(): void

/**
* @test
* @dataProvider limitProvider
*/
public function it_should_query_mailhog_until_all_messages_have_been_received(): void
{
Expand Down Expand Up @@ -168,6 +169,16 @@ function (Message $message) {
}
}

public function limitProvider(): array
{
return [
'one by one' => [1],
'limit less than total' => [2],
'limit equal to total' => [5],
'limit more than total' => [10],
];
}

/**
* @test
* @dataProvider specificationProvider
Expand Down

0 comments on commit 644e3df

Please sign in to comment.