MDL-48197 testing: Normalise uses of noemailever and phpmailer sink

This commit is contained in:
Andrew Nicols
2014-11-19 09:09:50 +08:00
parent 556e3a9e8a
commit fc05c1b8e5
9 changed files with 20 additions and 27 deletions
+2
View File
@@ -432,6 +432,8 @@ class core_phpunit_advanced_testcase extends advanced_testcase {
$message2->notification = 0;
// There should be debugging message without redirection.
$mailsink = $this->redirectEmails();
$mailsink->close();
message_send($message1);
$this->assertDebuggingCalled(null, null, 'message_send() must print debug message that messaging is disabled in phpunit tests.');