This task aims to track those tests in MediaWiki core that, due to some config values differing from what the developer was expecting, are not guaranteed to work on all installs of MediaWiki.
- Some tests assume that the content language is English (T277456)
- DefaultPreferencesFactoryTest::testEmailAuthentication fails if $wgEmailAuthentication is false
- DefaultPreferencesFactoryTest::testAllServiceOptionsUsed fails with "EnableUserEmailBlacklist" not being used, if $wgEnableUserEmail is false
- A few tests in SpecialSearchTest don't work because they create the page with Title::makeTitle( NS_SPECIAL, 'Search' );, which might not be the local name, which causes SpecialPageExecutor to return a title for redirecting, but the test code doesn't follow the redirect. (More tests might be affected, worth creating a separate tasks if there are many)
- ...
DOD: All tests pass on the machine of whoever wants to try it (@Daimona at least). It's highly possible that more tests might fail under configs that nobody is using for development, but we can't hope to catch every edge case.