mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
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:
parent
0bd53dfeb1
commit
9fc29beb09
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue