Replace assertNotRegExp -> assertDoesNotMatchRegularExpression

Follow-up to I6859b48f7a9084101e981fb48449c1c1dc17a80c.

Bug: T243600
Change-Id: Ifdba0f9e98eb6bce4590b7eb73170c51a697d7c6
This commit is contained in:
Daimona Eaytoy 2022-10-07 16:51:53 +02:00
parent b156d227aa
commit 32f9cf26a6

View file

@ -8,7 +8,7 @@ class HTMLFancyCaptchaFieldTest extends MediaWikiIntegrationTestCase {
$html = $this->getForm( [ 'imageUrl' => 'https://example.com/' ] )->getHTML( false );
$this->assertMatchesRegularExpression( '/"fancycaptcha-image"/', $html );
$this->assertMatchesRegularExpression( '#src="https://example.com/"#', $html );
$this->assertNotRegExp( '/"mw-createacct-captcha-assisted"/', $html );
$this->assertDoesNotMatchRegularExpression( '/"mw-createacct-captcha-assisted"/', $html );
$html = $this->getForm( [ 'imageUrl' => '', 'showCreateHelp' => true ] )->getHTML( false );
$this->assertMatchesRegularExpression( '/"mw-createacct-captcha-assisted"/', $html );