You are here

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

Fills in a value on a textfield.

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

... 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);
}