mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Linter
synced 2024-11-27 17:20:12 +00:00
tests: getMock() is deprecated
Bug: T192167 Change-Id: I0513626d69ee7fbfac40f3d648865e7bb9e23421
This commit is contained in:
parent
9c280df134
commit
c87c38eb20
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue