From: Kunal Mehta Date: Sun, 8 Apr 2018 00:36:54 +0000 (-0700) Subject: RevisionTest: Fix getMockTitle() X-Git-Tag: 1.31.0-rc.0~150^2~2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%22%24lasturl/%7B%24admin_url%7Dmembres/cotisations/gestion/%40%20%27info_date_publication_anterieure%27%20=%3E%20%27Previously%20published%20on:%27%2C%20%27info_date_referencement%27%20=%3E%20%27THIS%20SITE%20REFERENCED%20ON:%27%2C%20%27info_derniere_etape%27%20=%3E%20%27Done%21%27%2C-%27info_derniers_articles_publies%27%20=%3E%20%27Your%20most%20recently%20published%20articles%27%2C-%27info_desactiver_messagerie_personnelle%27%20=%3E%20%27You%20can%20enable%20or%20disable%20your%20personal%20messaging%20on%20this%20site.%27%2C%20%27info_descriptif%27%20=%3E%20%27Description:%27%2C%20%27info_desinstaller_plugin%27%20=%3E%20%27%20deactivates%20the%20plugin%20and%20deletes%20the%20data%27%2C%20%27info_discussion_cours%27%20=%3E%20%27Current%20discussions%27%2C%40%40%20-332%2C7%20%20284%2C6%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=28267081d8ddea8b91c7d7cc1640be662dd41252;p=lhc%2Fweb%2Fwiklou.git 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 --- 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;