We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8fdae8 commit 0f669caCopy full SHA for 0f669ca
src/Codeception/Module/Symfony.php
@@ -548,7 +548,7 @@ public function seeEmailIsSent($expectedCount = null)
548
$realCount = count($mailCollector->getEvents()->getMessages());
549
}
550
551
- if ($expectedCount) {
+ if ($expectedCount !== null) {
552
$this->assertEquals($expectedCount, $realCount, sprintf(
553
'Expected number of sent emails was %d, but in reality %d %s sent.',
554
$expectedCount, $realCount, $realCount === 2 ? 'was' : 'were'
0 commit comments