From 757c29a2545b56780f190e1ad16015aa5e9961bb Mon Sep 17 00:00:00 2001 From: Hashar Date: Mon, 18 Feb 2013 11:54:35 +0000 Subject: [PATCH] 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 --- tests/phpunit/includes/api/ApiAccountCreationTest.php | 6 ------ 1 file changed, 6 deletions(-) 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 ) ); } /** -- 2.20.1