Unregister hooks that interfere with unit testing
authorHuji Lee <huji.huji@gmail.com>
Thu, 28 Sep 2017 15:20:45 +0000 (11:20 -0400)
committerHuji Lee <huji.huji@gmail.com>
Thu, 28 Sep 2017 15:22:16 +0000 (11:22 -0400)
Id7403f57cc9d751ada85b611193c1d8f3503e713 did not properly
reference the hook

Bug: T176102
Change-Id: Ibff72c0efe82ba6fd4458e3c8a96179f50ca21b0

tests/phpunit/includes/user/PasswordResetTest.php

index feae26a..68b7959 100644 (file)
@@ -152,7 +152,7 @@ class PasswordResetTest extends MediaWikiTestCase {
 
                // Unregister the hooks for proper unit testing
                $this->mergeMwGlobalArrayValue( 'wgHooks', [
-                       'mailPasswordInternal' => [],
+                       'User::mailPasswordInternal' => [],
                        'SpecialPasswordResetOnSubmit' => [],
                ] );