Skip to content

Commit

Permalink
Merge pull request #35 from rpkamp/extend-testing
Browse files Browse the repository at this point in the history
Add more test cases for looping through all messages
  • Loading branch information
rpkamp authored Jan 31, 2020
2 parents 9acbaa4 + 644e3df commit 7f46fb4
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 7f46fb4

Please sign in to comment.