tests: getMock() is deprecated

Bug: T192167
Change-Id: I0513626d69ee7fbfac40f3d648865e7bb9e23421
This commit is contained in:
Max Semenik 2019-10-21 22:15:13 -07:00
parent 9c280df134
commit c87c38eb20

View file

@ -38,7 +38,7 @@ class RecordLintJobTest extends \MediaWikiTestCase {
* @return Title
*/
private function getMockTitle( $articleId = 1, $revId = 2 ) {
$mock = $this->getMock( Title::class, [ 'getLatestRevID', 'getArticleID' ] );
$mock = $this->createMock( Title::class );
$mock->expects( $this->any() )->method( 'getLatestRevID' )->willReturn( $revId );
$mock->expects( $this->any() )->method( 'getArticleID' )->willReturn( $articleId );