From fc587099fac5d45f8a1189bc34b5732e1ae86b2f Mon Sep 17 00:00:00 2001 From: Huji Lee Date: Thu, 28 Sep 2017 11:20:45 -0400 Subject: [PATCH] Unregister hooks that interfere with unit testing Id7403f57cc9d751ada85b611193c1d8f3503e713 did not properly reference the hook Bug: T176102 Change-Id: Ibff72c0efe82ba6fd4458e3c8a96179f50ca21b0 --- tests/phpunit/includes/user/PasswordResetTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/user/PasswordResetTest.php b/tests/phpunit/includes/user/PasswordResetTest.php index feae26a2dc..68b79591f6 100644 --- a/tests/phpunit/includes/user/PasswordResetTest.php +++ b/tests/phpunit/includes/user/PasswordResetTest.php @@ -152,7 +152,7 @@ class PasswordResetTest extends MediaWikiTestCase { // Unregister the hooks for proper unit testing $this->mergeMwGlobalArrayValue( 'wgHooks', [ - 'mailPasswordInternal' => [], + 'User::mailPasswordInternal' => [], 'SpecialPasswordResetOnSubmit' => [], ] ); -- 2.20.1