public function WebformElementMultiplePropertyTest::testMultipleProperty in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/Element/WebformElementMultiplePropertyTest.php \Drupal\Tests\webform\Functional\Element\WebformElementMultiplePropertyTest::testMultipleProperty()
Tests multiple element.
File
- tests/
src/ Functional/ Element/ WebformElementMultiplePropertyTest.php, line 22
Class
- WebformElementMultiplePropertyTest
- Tests for webform element multiple property.
Namespace
Drupal\Tests\webform\Functional\ElementCode
public function testMultipleProperty() {
// Check processing.
$this
->drupalPostForm('/webform/test_element_multiple_property', [], 'Submit');
$this
->assertRaw('webform_element_multiple: false
webform_element_multiple_true: true
webform_element_multiple_false: false
webform_element_multiple_custom: 5
webform_element_multiple_disabled: 5
webform_element_multiple_true_access: true
webform_element_multiple_false_access: false
webform_element_multiple_custom_access: 5');
}