(Bug 44192) Do not attempt to send a real e-mail
authorPlatonides <platonides@gmail.com>
Thu, 28 Feb 2013 22:16:29 +0000 (14:16 -0800)
committerAntoine Musso <hashar@free.fr>
Thu, 28 Feb 2013 22:17:08 +0000 (14:17 -0800)
commit9cd81e4c14050a9ee5d32d83bf2c303968f05870
tree1c208fea88376bee8b86e8326dee9e6b46802638
parent757c29a2545b56780f190e1ad16015aa5e9961bb
(Bug 44192) Do not attempt to send a real e-mail

The ApiAccountCreationTest is attempting to send an email to the newly
created user. The tests should really never send any email. This patch
register a noop callback for the 'AlternateUserMailer' hook which would
disable email entirely in our test suite.

This is generic version of 2025a89 which was only disabling mail for the
ApiAccountCreationTest test and that Antoine reverted.

Change-Id: I7b3ba4f7563a5818c988d6f8da165cc3c984f160
tests/phpunit/phpunit.php