You are here

protected function WebformAssertLegacyTrait::assertNoPattern in Webform 6.x

Same name and namespace in other branches
  1. 8.5 tests/src/Traits/WebformAssertLegacyTrait.php \Drupal\Tests\webform\Traits\WebformAssertLegacyTrait::assertNoPattern()

Triggers a pass if the Perl regex pattern is not found in the raw content.

Parameters

string $pattern: Perl regex to look for including the regex delimiters.

See also

https://www.drupal.org/node/2864262

4 calls to WebformAssertLegacyTrait::assertNoPattern()
WebformHelpTest::testHelp in tests/src/Functional/WebformHelpTest.php
Tests webform help.
WebformSettingsAdminTest::testAdminSettings in tests/src/Functional/Settings/WebformSettingsAdminTest.php
Tests webform admin settings.
WebformSettingsBehaviorsTest::testSettings in tests/src/Functional/Settings/WebformSettingsBehaviorsTest.php
Tests webform setting including confirmation.
WebformWizardConditionalTest::testConditionalWizard in tests/src/Functional/Wizard/WebformWizardConditionalTest.php
Test webform custom wizard.

File

tests/src/Traits/WebformAssertLegacyTrait.php, line 634

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertNoPattern($pattern) {
  $this
    ->assertSession()
    ->responseNotMatches($pattern);
}