You are here

public function DurationFieldBrowserTestBase::assertElementExists in Duration Field 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertElementExists()
  2. 8 tests/src/Functional/DurationFieldBrowserTestBase.php \Drupal\Tests\duration_field\Functional\DurationFieldBrowserTestBase::assertElementExists()

Asserts an element exists on the page.

1 call to DurationFieldBrowserTestBase::assertElementExists()
DurationFieldFunctionalTest::createDefaultSetup in tests/src/Functional/DurationFieldFunctionalTest.php
Sets up a date.

File

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

Class

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

Namespace

Drupal\Tests\duration_field\Functional

Code

public function assertElementExists($selector) {
  $this
    ->assertSession()
    ->elementExists('css', $selector);
}