Page MenuHomePhabricator

Remove usage of explicitly setting $wgHooks in tests
Open, Needs TriagePublic

Description

Many tests directly access $wgHooks in order to manipulate the state of hooks for their tests to run properly.
We should replace all the tests that directly access $wgHooks with methods from MediaWikiIntegrationTestCase to achieve the same thing. The useful methods would be: clearHook(), clearAllHooks(), and setTemporaryHook().

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 22 2020, 5:54 AM