wiki.techinc.nl/tests/phpunit/includes/specials/SpecialPasswordResetTest.php
DannyS712 8b2b8048d0 Inject some services to special pages
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
2020-08-01 10:57:37 +00:00

14 lines
274 B
PHP

<?php
use MediaWiki\MediaWikiServices;
class SpecialPasswordResetTest extends FormSpecialPageTestCase {
/**
* {@inheritdoc}
*/
protected function newSpecialPage() {
return new SpecialPasswordReset(
MediaWikiServices::getInstance()->getPasswordReset()
);
}
}