You are here

protected function UiHelperTrait::getTextContent in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()
  2. 9 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()

Retrieves the plain-text content from the current page.

6 calls to UiHelperTrait::getTextContent()
BlockContentFieldFilterTest::assertPageCounts in core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
Asserts that the given block_content translation counts are correct.
BrowserTestBaseTest::testGoTo in core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
Tests basic page test.
CommentFieldFilterTest::assertPageCounts in core/modules/comment/tests/src/Functional/Views/CommentFieldFilterTest.php
Asserts that the given comment translation counts are correct.
NodeFieldFilterTest::assertPageCounts in core/modules/node/tests/src/Functional/Views/NodeFieldFilterTest.php
Asserts that the given node translation counts are correct.
NodeLanguageTest::testLanguages in core/modules/node/tests/src/Functional/Views/NodeLanguageTest.php
Tests translation language filter, field, and sort.

... See full list

File

core/tests/Drupal/Tests/UiHelperTrait.php, line 413

Class

UiHelperTrait
Provides UI helper methods.

Namespace

Drupal\Tests

Code

protected function getTextContent() {
  return $this
    ->getSession()
    ->getPage()
    ->getText();
}