protected function UiHelperTrait::getTextContent in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()
- 10 core/tests/Drupal/Tests/UiHelperTrait.php \Drupal\Tests\UiHelperTrait::getTextContent()
Retrieves the plain-text content from the current page.
12 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.
- EntityDisplayModeTest::testAlphabeticalDisplaySettings in core/
modules/ field_ui/ tests/ src/ Functional/ EntityDisplayModeTest.php - Tests if view modes appear in alphabetical order by visible name.
- FormTest::widgetAlterTest in core/
modules/ field/ tests/ src/ Functional/ FormTest.php - Tests widget alter hooks for a given hook name.
File
- core/
tests/ Drupal/ Tests/ UiHelperTrait.php, line 510
Class
- UiHelperTrait
- Provides UI helper methods.
Namespace
Drupal\TestsCode
protected function getTextContent() {
return $this
->getSession()
->getPage()
->getText();
}