getTestSysop()->getUser()->getName() : null; $provider = new TitleBlacklistPreAuthenticationProvider(); $this->initProvider( $provider, null, null, $this->getServiceContainer()->getAuthManager() ); $reqs = $provider->getAuthenticationRequests( $action, [ 'username' => $username ] ); $this->assertEquals( $expectedReqs, $reqs ); } public static function provideGetAuthenticationRequests() { return [ [ AuthManager::ACTION_LOGIN, false, [] ], [ AuthManager::ACTION_CREATE, false, [] ], [ AuthManager::ACTION_CREATE, true, [ new TitleBlacklistAuthenticationRequest() ] ], [ AuthManager::ACTION_CHANGE, false, [] ], [ AuthManager::ACTION_REMOVE, false, [] ], ]; } }