You are here

public function DurationFieldBrowserTestBase::assertTextExists in Duration Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertTextExists()
  2. 3.0.x 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()
DurationFieldAccessTest::testHumanReadableAll in tests/src/Functional/DurationFieldFunctionalTest.php
Tests human readable values.
DurationFieldAccessTest::testHumanReadableDate in tests/src/Functional/DurationFieldFunctionalTest.php
Tests human readable dates.
DurationFieldAccessTest::testHumanReadableTime in tests/src/Functional/DurationFieldFunctionalTest.php
Test human readable times.
DurationFieldAccessTest::testRawValue in tests/src/Functional/DurationFieldFunctionalTest.php
Tests raw values.
DurationFieldAccessTest::testTimeDate in tests/src/Functional/DurationFieldFunctionalTest.php
Tests the date part of a time.

... See full list

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\Functional

Code

public function assertTextExists($text) {
  $this
    ->assertSession()
    ->pageTextContains($text);
}