You are here

protected function WebformAssertLegacyTrait::assertEscaped in Webform 6.x

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

Passes if the raw text IS found escaped on the loaded page, fail otherwise.

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 600

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

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