From: Hashar Date: Mon, 18 Feb 2013 11:54:35 +0000 (+0000) Subject: Revert "(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest" X-Git-Tag: 1.31.0-rc.0~20530 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=757c29a2545b56780f190e1ad16015aa5e9961bb;p=lhc%2Fweb%2Fwiklou.git Revert "(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest" This need to be made a global feature that will be applied to any test. This reverts commit 2025a89d5bcc513826428529ed191aa781942419 Change-Id: Ia7165b78b4f80738ed9b769319e159cd86fc7bdf --- diff --git a/tests/phpunit/includes/api/ApiAccountCreationTest.php b/tests/phpunit/includes/api/ApiAccountCreationTest.php index af499d179d..f37e2799da 100644 --- a/tests/phpunit/includes/api/ApiAccountCreationTest.php +++ b/tests/phpunit/includes/api/ApiAccountCreationTest.php @@ -7,14 +7,8 @@ */ 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 ) ); } /**