public function ThunderFormFieldTestTrait::setFieldValues in Thunder 8.3
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
- 8.2 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
- 8.4 tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
- 6.2.x tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
- 6.0.x tests/src/FunctionalJavascript/ThunderFormFieldTestTrait.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderFormFieldTestTrait::setFieldValues()
- 6.1.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.
10 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.
File
- tests/
src/ FunctionalJavascript/ ThunderFormFieldTestTrait.php, line 111
Class
- ThunderFormFieldTestTrait
- Trait for manipulation of form fields.
Namespace
Drupal\Tests\thunder\FunctionalJavascriptCode
public function setFieldValues(DocumentElement $page, array $fieldValues) {
foreach ($fieldValues as $fieldName => $value) {
$this
->setFieldValue($page, $fieldName, $value);
}
}