public function YamlFormElementAttributesTest::test in YAML Form 8
Tests element attributes.
File
- src/
Tests/ YamlFormElementAttributesTest.php, line 24
Class
- YamlFormElementAttributesTest
- Tests for form element attributes.
Namespace
Drupal\yamlform\TestsCode
public function test() {
// Check default value handling.
$this
->drupalPostForm('yamlform/test_element_attributes', [], t('Submit'));
$this
->assertRaw("yamlform_element_attributes:\n class:\n - one\n - two\n - four\n style: 'color: red'\n custom: test");
}