RevisionTest: Fix getMockTitle()
authorKunal Mehta <legoktm@member.fsf.org>
Sun, 8 Apr 2018 00:36:54 +0000 (17:36 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Sun, 8 Apr 2018 00:54:52 +0000 (17:54 -0700)
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

index 8b644c5..d928fb4 100644 (file)
@@ -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;