public function FormOptionsAttributesTest::testRadios in Form Options Attributes 2.0.x
Same name and namespace in other branches
- 8 tests/modules/form_options_attributes_test/src/Tests/FormOptionsAttributesTest.php \Drupal\form_options_attributes_test\Tests\FormOptionsAttributesTest::testRadios()
Test form #options_attributes on radios elements
File
- tests/
modules/ form_options_attributes_test/ src/ Tests/ FormOptionsAttributesTest.php, line 56
Class
- FormOptionsAttributesTest
- Tests the #options_attributes functionality of select, checkboxes, and radios.
Namespace
Drupal\form_options_attributes_test\TestsCode
public function testRadios() {
$this
->drupalGet('form-options-attributes-test');
$this
->assertSession()
->elementAttributeContains('css', 'input.southeast.form-radio', 'data-bbq-meat', 'pork');
}