From 28267081d8ddea8b91c7d7cc1640be662dd41252 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sat, 7 Apr 2018 17:36:54 -0700 Subject: [PATCH] RevisionTest: Fix getMockTitle() There's no such function "getModel", it's probably supposed to be "getContentModel". PHPUnit 6 emits warnings for trying to mock functions that don't exist. Change-Id: I0e5434e48958a8b75238b2ebffb5c1dc4e60c864 --- tests/phpunit/includes/RevisionTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/RevisionTest.php b/tests/phpunit/includes/RevisionTest.php index 8b644c57cb..d928fb4512 100644 --- a/tests/phpunit/includes/RevisionTest.php +++ b/tests/phpunit/includes/RevisionTest.php @@ -54,7 +54,7 @@ class RevisionTest extends MediaWikiTestCase { ->method( 'getArticleID' ) ->will( $this->returnValue( 23 ) ); $mock->expects( $this->any() ) - ->method( 'getModel' ) + ->method( 'getContentModel' ) ->will( $this->returnValue( $model ) ); return $mock; -- 2.20.1