Skip to content

Commit 0f669ca

Browse files
authored
Fix seeEmailIsSent (#56)
1 parent f8fdae8 commit 0f669ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Codeception/Module/Symfony.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ public function seeEmailIsSent($expectedCount = null)
548548
$realCount = count($mailCollector->getEvents()->getMessages());
549549
}
550550

551-
if ($expectedCount) {
551+
if ($expectedCount !== null) {
552552
$this->assertEquals($expectedCount, $realCount, sprintf(
553553
'Expected number of sent emails was %d, but in reality %d %s sent.',
554554
$expectedCount, $realCount, $realCount === 2 ? 'was' : 'were'

0 commit comments

Comments
 (0)