Motivation
There're many places in the code (particularly) in extensions/intersection where the parser is created via direct access to MediaWikiServices:
MediaWikiServices::instance()->getParserFactory()->create();
As far as parserFactory is a singleton it always creates the Parser with the options were actual when ParserFactory initialized.
So the tests, particularly ParserIntegrationTest run with settings provided from LocalSetting, not test settings,
Expected result:
ParserIntegrationTest should reset ParserFactory service on setUp so that it's created with the settings provided by the test.
Additional info:
This issue blocks the paths: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/intersection/+/572720
and T244055