You are here

protected function WebformAssertLegacyTrait::getRawContent in Webform 6.x

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

Gets the current raw content.

4 calls to WebformAssertLegacyTrait::getRawContent()
WebformAssertLegacyTrait::assertNoRaw in tests/src/Traits/WebformAssertLegacyTrait.php
Passes if the raw text IS not found on the loaded page, fail otherwise.
WebformAssertLegacyTrait::assertRaw in tests/src/Traits/WebformAssertLegacyTrait.php
Passes if the raw text IS found on the loaded page, fail otherwise.
WebformHandlerRemotePostTest::testRemotePostHandler in tests/src/Functional/Handler/WebformHandlerRemotePostTest.php
Test remote post handler.
WebformSubmissionImportExportFunctionalTest::testSubmissionExport in modules/webform_submission_export_import/tests/src/Functional/WebformSubmissionImportExportFunctionalTest.php
Test submission import.

File

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

Class

WebformAssertLegacyTrait
Provides convenience methods for assertions in browser tests.

Namespace

Drupal\Tests\webform\Traits

Code

protected function getRawContent() {
  return $this
    ->getSession()
    ->getPage()
    ->getContent();
}