diff options
Diffstat (limited to 'tests/phpunit/includes/parser/ParserCacheTest.php')
-rw-r--r-- | tests/phpunit/includes/parser/ParserCacheTest.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/phpunit/includes/parser/ParserCacheTest.php b/tests/phpunit/includes/parser/ParserCacheTest.php index 4cb4e17576d8..cd24de784751 100644 --- a/tests/phpunit/includes/parser/ParserCacheTest.php +++ b/tests/phpunit/includes/parser/ParserCacheTest.php @@ -477,6 +477,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase { $options->setOption( $this->getDummyUsedOptions()[0], 'value1' ); $wikiPageMock = $this->createMock( WikiPage::class ); + $wikiPageMock->method( 'getContentModel' )->willReturn( 'wikitext' ); $wikiPageFactoryMock = $this->createMock( WikiPageFactory::class ); $wikiPageFactoryMock->method( 'newFromTitle' ) ->with( $this->page ) @@ -527,6 +528,7 @@ class ParserCacheTest extends MediaWikiIntegrationTestCase { $mockPage = $this->createNoOpMock( PageRecord::class, [ 'exists', 'assertWiki' ] ); $mockPage->method( 'exists' )->willReturn( false ); $wikiPageMock = $this->createMock( WikiPage::class ); + $wikiPageMock->method( 'getContentModel' )->willReturn( 'wikitext' ); $wikiPageFactoryMock = $this->createMock( WikiPageFactory::class ); $wikiPageFactoryMock->method( 'newFromTitle' ) ->with( $mockPage ) |