Last modified: 2014-02-12 23:35:51 UTC
From Bug 44192, ApiCreateAccountTest::testValid() can result in emails being sent. This sort of thing should really be stubbed out.
This is the problem with entirely static classes. Stubbing UserMailer is almost impossible since it's always called statically. Either we can add a conditional inside UserMailer to check for unit tests, or we can turn UserMailer into an actual class, deprecate the static methods, and then stub it out for unit tests.