You are here

protected function WebformAssertLegacyTrait::assertNoEscaped in Webform 6.x

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

Passes if the raw text is not found escaped on the loaded page.

Raw text refers to the raw HTML that the page generated.

Parameters

string $raw: Raw (HTML) string to look for.

File

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

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function assertNoEscaped($raw) {
  $this
    ->assertSession()
    ->assertNoEscaped($raw);
}