mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +00:00
Merge "Page properties should always be strings"
This commit is contained in:
commit
896b20bc3d
|
@ -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(
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue