tests: getMock() is deprecated

Bug: T192167
Change-Id: I94a4674103b0946d208ff0c28f260506048cb211
This commit is contained in:
Max Semenik 2019-10-22 14:00:57 -07:00
parent b5dfd7d7c1
commit 665b7758c5
3 changed files with 4 additions and 4 deletions

View file

@ -173,7 +173,7 @@ class MovePageTest extends MediaWikiTestCase {
public function testIsValidMove(
$old, $new, array $expectedErrors, array $extraOptions = []
) {
$iwLookup = $this->getMock( InterwikiLookup::class );
$iwLookup = $this->createMock( InterwikiLookup::class );
$iwLookup->method( 'isValidInterwiki' )
->willReturn( true );
@ -345,7 +345,7 @@ class MovePageTest extends MediaWikiTestCase {
* @param array $extraOptions
*/
public function testMove( $old, $new, array $expectedErrors, array $extraOptions = [] ) {
$iwLookup = $this->getMock( InterwikiLookup::class );
$iwLookup = $this->createMock( InterwikiLookup::class );
$iwLookup->method( 'isValidInterwiki' )
->willReturn( true );

View file

@ -718,7 +718,7 @@ class TitleTest extends MediaWikiTestCase {
* @param bool $isValid
*/
public function testIsValid( Title $title, $isValid ) {
$iwLookup = $this->getMock( InterwikiLookup::class );
$iwLookup = $this->createMock( InterwikiLookup::class );
$iwLookup->method( 'isValidInterwiki' )
->willReturn( true );

View file

@ -48,7 +48,7 @@ class CategoryMembershipChangeTest extends MediaWikiLangTestCase {
public function setUp() {
parent::setUp();
self::$notifyCallCounter = 0;
self::$mockRecentChange = self::getMock( RecentChange::class );
self::$mockRecentChange = $this->createMock( RecentChange::class );
$this->setContentLang( 'qqx' );
}