Techical notes
Following changes in T405595, and more precisely c1196204, the CaptchaConsequence constructor takes an optional Config parameter. Making this parameter required, will help rely only on Dependency injection, rather that calling the static method MediaWikiServices::getInstance, which makes testing through mocks less optimal.
Acceptance criteria
- AbuseFilter's test ConfirmEditHandlerTest provides proper Config object
- ConfirmEdit extension's CaptchaConsequence only uses dependency injection