public function DurationFieldBrowserTestBase::assertTextExists in Duration Field 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertTextExists()
- 8 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertTextExists()
Asserts that the given text exists on a page.
7 calls to DurationFieldBrowserTestBase::assertTextExists()
- DurationFieldFunctionalTest::testHumanReadableDate in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests human readable date field formatter.
- DurationFieldFunctionalTest::testHumanReadableFormatter in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests the Human Friendly duration field formatter outputs correct data.
- DurationFieldFunctionalTest::testRawValue in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests the raw value field formatter.
- DurationFieldFunctionalTest::testTimeDate in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests the date part of the time formatter.
- DurationFieldFunctionalTest::testTimeFormatter in tests/
src/ Functional/ DurationFieldFunctionalTest.php - Tests the Time Format duration field formatter outputs correct data.
File
- tests/
src/ Functional/ DurationFieldBrowserTestBase.php, line 144
Class
- DurationFieldBrowserTestBase
- Base class that provides some helper functions for functional tests.
Namespace
Drupal\Tests\duration_field\FunctionalCode
public function assertTextExists($text) {
$this
->assertSession()
->pageTextContains($text);
}