Browse Source

Explicitly check against null, to enable testing attributes of email #0

gregs 4 years ago
parent
commit
aa711f09c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/TestSuite/Constraint/Email/MailConstraintBase.php

+ 1 - 1
src/TestSuite/Constraint/Email/MailConstraintBase.php

@@ -47,7 +47,7 @@ abstract class MailConstraintBase extends Constraint
     {
         $emails = TestEmailTransport::getEmails();
 
-        if ($this->at) {
+        if ($this->at !== null) {
             if (!isset($emails[$this->at])) {
                 return [];
             }