function AssertContentTrait::getRawContent

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getRawContent()
  2. 8.9.x core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getRawContent()
  3. 10 core/tests/Drupal/KernelTests/AssertContentTrait.php \Drupal\KernelTests\AssertContentTrait::getRawContent()

Gets the current raw content.

12 calls to AssertContentTrait::getRawContent()
AssertContentTrait::assertEscaped in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if the raw text IS found escaped on the loaded page, fail otherwise.
AssertContentTrait::assertNoEscaped in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if raw text IS NOT found escaped on loaded page, fail otherwise.
AssertContentTrait::assertNoPattern in core/tests/Drupal/KernelTests/AssertContentTrait.php
Triggers a pass if the perl regex pattern is not found in raw content.
AssertContentTrait::assertNoRaw in core/tests/Drupal/KernelTests/AssertContentTrait.php
Passes if the raw text is NOT found on the loaded page, fail otherwise.
AssertContentTrait::assertPattern in core/tests/Drupal/KernelTests/AssertContentTrait.php
Triggers a pass if the Perl regex pattern is found in the raw content.

... See full list

File

core/tests/Drupal/KernelTests/AssertContentTrait.php, line 50

Class

AssertContentTrait
Provides test methods to assert content.

Namespace

Drupal\KernelTests

Code

protected function getRawContent() {
    return $this->content;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.