Revert "(Bug 44192) Do not attempt to send a real e-mail in ApiAccountCreationTest"
authorHashar <hashar@free.fr>
Mon, 18 Feb 2013 11:54:35 +0000 (11:54 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 28 Feb 2013 21:48:16 +0000 (21:48 +0000)
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

index af499d1..f37e279 100644 (file)
@@ -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 ) );
        }
 
        /**