Rename deprecated usage of ParserOutput::{get,set}Property()

Bug: T287216
Depends-On: Ie963eea5aa0f0e984ced7c4dfa0fd65d57313cfa
Change-Id: Id4581c6c45f9fc4690900a30d8172951bc461a1b
This commit is contained in:
C. Scott Ananian 2021-10-08 10:12:05 -04:00
parent 4c55bcbd94
commit 30cfb7c05a
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@
"license-name": "GPL-2.0-or-later",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.35.0"
"MediaWiki": ">= 1.38.0"
},
"MessagesDirs": {
"Cite": [

View file

@ -299,7 +299,7 @@ class Cite {
// Tag every page where Book Referencing has been used, whether or not the ref tag is valid.
// This code and the page property will be removed once the feature is stable. See T237531.
if ( array_key_exists( self::BOOK_REF_ATTRIBUTE, $argv ) ) {
$parser->getOutput()->setProperty( self::BOOK_REF_PROPERTY, true );
$parser->getOutput()->setPageProperty( self::BOOK_REF_PROPERTY, true );
}
$status = $this->parseArguments(

View file

@ -657,7 +657,7 @@ class CiteUnitTest extends \MediaWikiUnitTestCase {
$mockOutput = $this->createMock( ParserOutput::class );
// This will be our most important assertion.
$mockOutput->expects( $this->once() )
->method( 'setProperty' )
->method( 'setPageProperty' )
->with( Cite::BOOK_REF_PROPERTY, true );
$mockParser = $this->createMock( Parser::class );