Page MenuHomePhabricator

Expand or create a new structure test to test for use of ContextSource in SpecialPage constructor
Open, Needs TriagePublic


The use of SpecialPage::getContext or some other functions in the SpecialPage constructor leads to global state.

With I have expanded a structure test, but it fails on some extensions (T297020) and gets reverted.

How to reapply the patch set and verify that all extension tests still pass as tests in /structure/ folder are running on extensions/skins as well?

Throwing an exception for all global states in SpecialPage::getContext could impact also all extensions. There is no way on the CI to test such things. Needs to be verifiy on local runs against all extensions.