From c87c38eb20e62e9aaec725c39091c811310a7b02 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Mon, 21 Oct 2019 22:15:13 -0700 Subject: [PATCH] tests: getMock() is deprecated Bug: T192167 Change-Id: I0513626d69ee7fbfac40f3d648865e7bb9e23421 --- tests/phpunit/RecordLintJobTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/RecordLintJobTest.php b/tests/phpunit/RecordLintJobTest.php index d1ba7f57..e7043105 100644 --- a/tests/phpunit/RecordLintJobTest.php +++ b/tests/phpunit/RecordLintJobTest.php @@ -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 );