mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Rename deprecated usage of ParserOutput::{get,set}Property()
Bug: T287216 Depends-On: Ie963eea5aa0f0e984ced7c4dfa0fd65d57313cfa Change-Id: Id4581c6c45f9fc4690900a30d8172951bc461a1b
This commit is contained in:
parent
4c55bcbd94
commit
30cfb7c05a
|
@ -15,7 +15,7 @@
|
|||
"license-name": "GPL-2.0-or-later",
|
||||
"type": "parserhook",
|
||||
"requires": {
|
||||
"MediaWiki": ">= 1.35.0"
|
||||
"MediaWiki": ">= 1.38.0"
|
||||
},
|
||||
"MessagesDirs": {
|
||||
"Cite": [
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue