Not all services are injected, only making a start: * ContentLanguage to SpecialAllMessages * PermissionManager to SpecialApiSandbox * PermissionManager to SpecialAutoblockList * PermissionManager to SpecialChangeEmail * PermissionManager to SpecialConfirmEmail * PermissionManager to SpecialCreateAccount * NamespaceInfo to SpecialPasswordPolicies * PasswordReset to SpecialPasswordReset * PermissionManager and RepoGroup to SpecialRedirect Bug: T232506 Change-Id: I5d45579200286ff182754e9db7230e9ef801ef0f
14 lines
274 B
PHP
14 lines
274 B
PHP
<?php
|
|
|
|
use MediaWiki\MediaWikiServices;
|
|
|
|
class SpecialPasswordResetTest extends FormSpecialPageTestCase {
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
protected function newSpecialPage() {
|
|
return new SpecialPasswordReset(
|
|
MediaWikiServices::getInstance()->getPasswordReset()
|
|
);
|
|
}
|
|
}
|