diff --git a/tests/phpunit/Hooks/ParserFileProcessingHookHandlersTest.php b/tests/phpunit/Hooks/ParserFileProcessingHookHandlersTest.php index 8e6c7f2..ca665db 100644 --- a/tests/phpunit/Hooks/ParserFileProcessingHookHandlersTest.php +++ b/tests/phpunit/Hooks/ParserFileProcessingHookHandlersTest.php @@ -186,14 +186,12 @@ class ParserFileProcessingHookHandlersTest extends MediaWikiIntegrationTestCase $handler = $this->getHandler( $candidates ); $handler->doParserAfterTidy( $parser, $html ); if ( $leadOnly ) { - $this->assertFalse( - // T301915 - $parser->getOutput()->getPageProperty( PageImages::PROP_NAME_FREE ) ?? false, + $this->assertNull( + $parser->getOutput()->getPageProperty( PageImages::PROP_NAME_FREE ), 'Only lead images are returned.' ); } else { $this->assertIsString( - // T301915 - $parser->getOutput()->getPageProperty( PageImages::PROP_NAME_FREE ) ?? false, + $parser->getOutput()->getPageProperty( PageImages::PROP_NAME_FREE ), 'All images are returned' );