tests: Pass FauxRequest to TempUserCreator

Needed-by: I99d5973498a89ac227847de5837c0a8e895c28fb

Bug: T343101
Change-Id: If660aad1d0f04f366414084aff3f88484a19d416
This commit is contained in:
Kosta Harlan 2024-03-28 13:44:32 +01:00
parent 58dc9db5d5
commit 3e0747d103
No known key found for this signature in database
GPG key ID: BC3D8915606A5ED9

View file

@ -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(),