You are here

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

Fills in a value on a textfield.

8 calls to DurationFieldBrowserTestBase::fillTextValue()
DurationFieldFunctionalTest::createDefaultSetup in tests/src/Functional/DurationFieldFunctionalTest.php
Sets up a date.
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.

... See full list

File

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

Class

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

Namespace

Drupal\Tests\duration_field\Functional

Code

public function fillTextValue($htmlID, $value) {
  if (preg_match('/^#/', $htmlID)) {
    $htmlID = substr($htmlID, 1);
  }
  $this
    ->getSession()
    ->getPage()
    ->fillField($htmlID, $value);
}