tests, preferences: Use $this-> instead of self:: when creating TD

In core, Test Doubles (TDs) are almost always created like that (using $this->),
lets stick to a unified way of things.

Change-Id: Ic8e62ccec19f136bc4cc6b27deefb43fd789ef07
This commit is contained in:
Derick N. Alangi 2020-01-17 16:24:42 +01:00 committed by D3r1ck01
parent c4fed6d253
commit 1f2bf063d7

View file

@ -114,7 +114,7 @@ class FiltersTest extends \MediaWikiUnitTestCase {
'Baz' => 3,
];
$flipped = array_flip( $userMapping );
$idLookup = self::getMockBuilder( CentralIdLookup::class )
$idLookup = $this->getMockBuilder( CentralIdLookup::class )
->disableOriginalConstructor()
->setMethods( [ 'centralIdsFromNames', 'namesFromCentralIds' ] )
->getMockForAbstractClass();