MDL-48197 testing: Always set up a mail sink for mail redirection
Rather than setting noemailever in the bootstrap, this sets up a default phpmailer message sink which will catch all messages. Tests which require the phpmailer sink will continue to work as before without change, though the noemailever config setting no longer needs to be altered. For tests wanting to test with noemailever set with the previous behaviour, they will need to load the message sink and then close it.
This commit is contained in:
@@ -209,8 +209,6 @@ error_reporting($CFG->debug);
|
||||
ini_set('display_errors', '1');
|
||||
ini_set('log_errors', '1');
|
||||
|
||||
$CFG->noemailever = true; // better not mail anybody from tests, override temporarily if necessary
|
||||
|
||||
// some ugly hacks
|
||||
$CFG->themerev = 1;
|
||||
$CFG->jsrev = 1;
|
||||
|
||||
Reference in New Issue
Block a user