protected function FormatterConfigurationTest::setFormatter in Video Embed Field 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/FormatterConfigurationTest.php \Drupal\Tests\video_embed_field\Functional\FormatterConfigurationTest::setFormatter()
Set the field formatter for the test field.
Parameters
string $formatter: The field formatter ID to use.
1 call to FormatterConfigurationTest::setFormatter()
- FormatterConfigurationTest::testVideoConfirmationForm in tests/
src/ Functional/ FormatterConfigurationTest.php - Test the formatter configuration forms.
File
- tests/
src/ Functional/ FormatterConfigurationTest.php, line 102
Class
- FormatterConfigurationTest
- Tests the field formatter configuration forms.
Namespace
Drupal\Tests\video_embed_field\FunctionalCode
protected function setFormatter($formatter) {
$this
->drupalGet($this->manageDisplay);
$this
->find('input[name="refresh_rows"]')
->setValue($this->fieldName);
$this
->submitForm([
'fields[' . $this->fieldName . '][type]' => $formatter,
'fields[' . $this->fieldName . '][region]' => 'content',
], t('Refresh'));
$this
->submitForm([], t('Save'));
}