From: Huji Lee Date: Thu, 28 Sep 2017 15:20:45 +0000 (-0400) Subject: Unregister hooks that interfere with unit testing X-Git-Tag: 1.31.0-rc.0~1941 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=fc587099fac5d45f8a1189bc34b5732e1ae86b2f;p=lhc%2Fweb%2Fwiklou.git Unregister hooks that interfere with unit testing Id7403f57cc9d751ada85b611193c1d8f3503e713 did not properly reference the hook Bug: T176102 Change-Id: Ibff72c0efe82ba6fd4458e3c8a96179f50ca21b0 --- 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' => [], ] );