mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamBlacklist
synced 2024-11-23 14:46:48 +00:00
tests: Pass FauxRequest to TempUserCreator
Needed-by: I99d5973498a89ac227847de5837c0a8e895c28fb Bug: T343101 Change-Id: If660aad1d0f04f366414084aff3f88484a19d416
This commit is contained in:
parent
58dc9db5d5
commit
3e0747d103
|
@ -75,7 +75,10 @@ class SpamBlacklistTest extends MediaWikiIntegrationTestCase {
|
|||
$this->enableAutoCreateTempUser();
|
||||
$this->prepareGlobals();
|
||||
$tempUserCreator = MediaWikiServices::getInstance()->getTempUserCreator();
|
||||
$user = $tempUserCreator->create()->getUser();
|
||||
$user = $tempUserCreator->create(
|
||||
null,
|
||||
new FauxRequest()
|
||||
)->getUser();
|
||||
$returnValue = $this->spamFilter->filter(
|
||||
$links,
|
||||
Title::newMainPage(),
|
||||
|
|
Loading…
Reference in a new issue