(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest
Change-Id: I6e9f45a51a27bdaf2bf62722f840ddc4755931aa
This commit is contained in:
parent
0caa0bdcf2
commit
2025a89d5b
1 changed files with 6 additions and 0 deletions
|
|
@ -7,8 +7,14 @@
|
|||
*/
|
||||
class ApiCreateAccountTest extends ApiTestCase {
|
||||
function setUp() {
|
||||
global $wgHooks;
|
||||
parent::setUp();
|
||||
LoginForm::setCreateaccountToken();
|
||||
|
||||
$hooks = $wgHooks;
|
||||
Hooks::clear( 'AlternateUserMailer' );
|
||||
$hooks['AlternateUserMailer'] = array( function () { return false; } );
|
||||
$this->setMwGlobals( array( 'wgHooks' => $hooks ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue