From 28dd7fd9cd233de866aed45e21088c2873e05151 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Sun, 21 Jan 2024 02:25:29 +0100 Subject: [PATCH] tests: Fix deprecation filter in ParserCacheSerializationTestCases Shown in phpunit test before start, class was namespaced in 9bfb75ff PHP Deprecated: Use of MediaWiki\Parser\ParserOutput::setTOCHTML was deprecated in MediaWiki 1.40. [Called from MediaWiki\Tests\Parser\ParserCacheSerializationTestCases::getParserOutputTestCases in /workspace/src/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php at line 236] in /workspace/src/includes/debug/MWDebug.php on line 378 Bug: T355952 Follow-Up: I4c2cbb0a808b3881a4d6ca489eee5d8c8ebf26cf Change-Id: I3d8e2beaf68dc55b93297b23e450c3bc89c5b222 --- .../includes/parser/ParserCacheSerializationTestCases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php b/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php index 1134b690e50..0ac791f9fef 100644 --- a/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php +++ b/tests/phpunit/includes/parser/ParserCacheSerializationTestCases.php @@ -173,7 +173,7 @@ abstract class ParserCacheSerializationTestCases { * @return array[] */ public static function getParserOutputTestCases() { - MWDebug::filterDeprecationForTest( '/Use of ParserOutput::setTOCHTML/' ); + MWDebug::filterDeprecationForTest( '/Use of MediaWiki\Parser\ParserOutput::setTOCHTML/' ); $parserOutputWithCacheTimeProps = new ParserOutput( 'CacheTime' ); $parserOutputWithCacheTimeProps->setCacheTime( self::CACHE_TIME ); $parserOutputWithCacheTimeProps->updateCacheExpiry( 10 );