diff --git a/extension.json b/extension.json index 77509180..98e09864 100644 --- a/extension.json +++ b/extension.json @@ -10,7 +10,7 @@ "license-name": "GPL-2.0-or-later", "type": "antispam", "requires": { - "MediaWiki": ">= 1.35.0" + "MediaWiki": ">= 1.37.0" }, "GroupPermissions": { "sysop": { diff --git a/tests/phpunit/TitleBlacklistPreAuthenticationProviderTest.php b/tests/phpunit/TitleBlacklistPreAuthenticationProviderTest.php index 5145e38f..219176bb 100644 --- a/tests/phpunit/TitleBlacklistPreAuthenticationProviderTest.php +++ b/tests/phpunit/TitleBlacklistPreAuthenticationProviderTest.php @@ -1,19 +1,21 @@ setManager( MediaWikiServices::getInstance()->getAuthManager() ); + $this->initProvider( $provider, null, null, $this->getServiceContainer()->getAuthManager() ); $reqs = $provider->getAuthenticationRequests( $action, [ 'username' => $username ] ); $this->assertEquals( $expectedReqs, $reqs ); }