Merge "Page properties should always be strings"

This commit is contained in:
jenkins-bot 2022-04-04 22:47:24 +00:00 committed by Gerrit Code Review
commit 896b20bc3d
2 changed files with 2 additions and 2 deletions

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()->setPageProperty( self::BOOK_REF_PROPERTY, true );
$parser->getOutput()->setPageProperty( self::BOOK_REF_PROPERTY, '' );
}
$status = $this->parseArguments(

View file

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