You are here

protected function AssertContentTrait::getRawContent in Drupal 9

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

Gets the current raw content.

20 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 the raw text IS NOT found escaped on the 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;
}