public function WebformElementEntityReferenceTest::testEntityReferenceTest in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/src/Functional/Element/WebformElementEntityReferenceTest.php \Drupal\Tests\webform\Functional\Element\WebformElementEntityReferenceTest::testEntityReferenceTest()
Test entity reference elements.
File
- tests/
src/ Functional/ Element/ WebformElementEntityReferenceTest.php, line 31
Class
- WebformElementEntityReferenceTest
- Tests for entity reference elements.
Namespace
Drupal\Tests\webform\Functional\ElementCode
public function testEntityReferenceTest() {
$webform = Webform::load('test_element_entity_reference');
// Check process entity references.
$this
->postSubmission($webform);
$this
->assertRaw("webform_entity_select_user_default: '1'\nwebform_entity_select_user_multiple:\n - '1'\nwebform_entity_radios_user_default: '1'\nwebform_entity_checkboxes_user_default:\n - '1'");
}