Skip to content
  • Andrew Nicols's avatar
    556e3a9e
    MDL-48197 testing: Always set up a mail sink for mail redirection · 556e3a9e
    Andrew Nicols authored
    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.
    556e3a9e
    MDL-48197 testing: Always set up a mail sink for mail redirection
    Andrew Nicols authored
    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.
Loading