Skip to content

Commit 7f46fb4

Browse files
authored
Merge pull request #35 from rpkamp/extend-testing
Add more test cases for looping through all messages
2 parents 9acbaa4 + 644e3df commit 7f46fb4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/integration/MailhogClientTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public function it_should_throw_exception_when_there_is_no_last_message(): void
139139

140140
/**
141141
* @test
142+
* @dataProvider limitProvider
142143
*/
143144
public function it_should_query_mailhog_until_all_messages_have_been_received(): void
144145
{
@@ -168,6 +169,16 @@ function (Message $message) {
168169
}
169170
}
170171

172+
public function limitProvider(): array
173+
{
174+
return [
175+
'one by one' => [1],
176+
'limit less than total' => [2],
177+
'limit equal to total' => [5],
178+
'limit more than total' => [10],
179+
];
180+
}
181+
171182
/**
172183
* @test
173184
* @dataProvider specificationProvider

0 commit comments

Comments
 (0)