Reset setForceShowCaptcha to false after test

This test globally set `setForceShowCaptcha` to true, which caused
problems for following tests.

Bug: T368705
Change-Id: I5077e4b874c1bf1c6b68895349af0c9ecd4094ed
This commit is contained in:
Jakob Warkotsch 2024-06-28 11:55:02 +02:00
parent 0bd53dfeb1
commit 9fc29beb09

View file

@ -18,6 +18,11 @@ use MediaWikiIntegrationTestCase;
*/
class ConfirmEditHandlerTest extends MediaWikiIntegrationTestCase {
protected function tearDown(): void {
parent::tearDown();
Hooks::getInstance()->setForceShowCaptcha( false );
}
public function testOnEditFilterMergedContent() {
$this->markTestSkippedIfExtensionNotLoaded( 'ConfirmEdit' );
$confirmEditHandler = new ConfirmEditHandler();