From: Huji Lee Date: Sun, 12 Nov 2017 01:44:00 +0000 (-0500) Subject: UserGroupsChanged hook should specify the performer of the change X-Git-Tag: 1.31.0-rc.0~1486 X-Git-Url: https://git.cyclocoop.org/admin/%7B%24admin_url%7Dmembres/Zigzagzogzagzig?a=commitdiff_plain;h=2a06bc44ca1059395f86fd1f6c5abab80c9b303d;p=lhc%2Fweb%2Fwiklou.git UserGroupsChanged hook should specify the performer of the change Otherwise, there will be a unit-testing error when Echo is enabled Bug: T180292 Change-Id: Ibc185c82ad2a03e06e5727a633e6ab6bccce3345 --- diff --git a/tests/phpunit/includes/auth/AuthPluginPrimaryAuthenticationProviderTest.php b/tests/phpunit/includes/auth/AuthPluginPrimaryAuthenticationProviderTest.php index 6970313498..82b0f8286a 100644 --- a/tests/phpunit/includes/auth/AuthPluginPrimaryAuthenticationProviderTest.php +++ b/tests/phpunit/includes/auth/AuthPluginPrimaryAuthenticationProviderTest.php @@ -73,7 +73,7 @@ class AuthPluginPrimaryAuthenticationProviderTest extends \MediaWikiTestCase { ); $provider = new AuthPluginPrimaryAuthenticationProvider( $plugin ); - \Hooks::run( 'UserGroupsChanged', [ $user, [ 'added' ], [ 'removed' ] ] ); + \Hooks::run( 'UserGroupsChanged', [ $user, [ 'added' ], [ 'removed' ], false, false, [], [] ] ); } public function testOnUserLoggedIn() {