Fix UserIdentityValue constructor call in test

Change-Id: If905e442444d319114e86ce78007bdc6dbc9c9f2
Needed-By: I9925906d11e47efaec3c1f48d5cb3f9896a982c1
This commit is contained in:
daniel 2021-03-25 15:13:15 +01:00
parent 92ffc1a7ed
commit e954ecfe19

View file

@ -29,7 +29,7 @@ class BlockAutopromoteTest extends MediaWikiUnitTestCase {
* @covers ::execute
*/
public function testExecute_anonymous() {
$user = new UserIdentityValue( 0, 'Anonymous user', 1 );
$user = new UserIdentityValue( 0, 'Anonymous user' );
$params = $this->provideGetMessageParameters( $user )->current()[0];
$blockAutopromoteStore = $this->createMock( BlockAutopromoteStore::class );
$blockAutopromoteStore->expects( $this->never() )