You are here

public function ThunderFormFieldTestTrait::setFieldValues in Thunder 6.1.x

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
  2. 8.2 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
  3. 8.3 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
  4. 8.4 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
  5. 6.2.x tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
  6. 6.0.x tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()

Set fields on current page.

Parameters

\Behat\Mink\Element\DocumentElement $page: Current active page.

array $fieldValues: Field values as associative array with field names as keys.

9 calls to ThunderFormFieldTestTrait::setFieldValues()
ArticleCreationTest::testModerationWorkflow in tests/src/FunctionalJavascript/ArticleCreationTest.php
Tests draft creation and that reverting to the default revision works.
ArticleSchedulerIntegration::testSchedulerAccess in tests/src/FunctionalJavascript/ArticleSchedulerIntegration.php
Test Creation of Article.
AutosaveFormTest::makeFormChanges in tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php
Make some changes to the article.
LiveblogTest::testWithPusher in tests/src/FunctionalJavascript/Integration/LiveblogTest.php
Testing of module integration.
MetaInformationTest::setMetaTagConfigurationForUrl in tests/src/FunctionalJavascript/MetaInformationTest.php
Set meta tag configuration for administration url.

... See full list

File

tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php, line 111

Class

ThunderFormFieldTestTrait
Trait for manipulation of form fields.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

public function setFieldValues(DocumentElement $page, array $fieldValues) {
  foreach ($fieldValues as $fieldName => $value) {
    $this
      ->setFieldValue($page, $fieldName, $value);
  }
}