You are here

public function DurationFieldBrowserTestBase::assertTextNotExists 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::assertTextNotExists()
  2. 3.0.x tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertTextNotExists()

Asserts that the given text does not exist on the page.

2 calls to DurationFieldBrowserTestBase::assertTextNotExists()
DurationFieldAccessTest::testHumanReadableDate in tests/src/Functional/DurationFieldFunctionalTest.php
Tests human readable dates.
DurationFieldAccessTest::testHumanReadableTime in tests/src/Functional/DurationFieldFunctionalTest.php
Test human readable times.

File

tests/src/Functional/DurationFieldBrowserTestBase.php, line 151

Class

DurationFieldBrowserTestBase
Base class that provides some helper functions for functional tests.

Namespace

Drupal\Tests\duration_field\Functional

Code

public function assertTextNotExists($text) {
  $this
    ->assertSession()
    ->pageTextNotContains($text);
}