diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-07-22 19:42:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-22 19:42:43 +0300 |
commit | 06d5f0e6c2d3cb42127aa09c17e2e56fcde76696 (patch) | |
tree | 54f212299deccb89230538dc04709d321e462981 | |
parent | 3133bfa78a0e0aadcae26efa9ea25b1ee8669684 (diff) |
Fix Mail test (#17806)
-rw-r--r-- | tests/PHPUnit/Integration/MailTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/PHPUnit/Integration/MailTest.php b/tests/PHPUnit/Integration/MailTest.php index f93a94279a..05a7f87562 100644 --- a/tests/PHPUnit/Integration/MailTest.php +++ b/tests/PHPUnit/Integration/MailTest.php @@ -56,12 +56,12 @@ class MailTest extends UnitTestCase $this->assertTrue($result); $this->assertCount(1, $this->sentMails); - Piwik::addAction('Mail.send', function (&$mail) { $mail = null; }); + Piwik::addAction('Mail.shouldSend', function (&$shouldSend, $mail) { $shouldSend = false; }); $mail2 = new Mail(); $result = $mail2->send(); - $this->assertNull($result); + $this->assertFalse($result); $this->assertCount(1, $this->sentMails); } |