WebformElementEntityReferenceTest.php in Webform 8.5
File
tests/src/Functional/Element/WebformElementEntityReferenceTest.php
View source
<?php
namespace Drupal\Tests\webform\Functional\Element;
use Drupal\webform\Entity\Webform;
class WebformElementEntityReferenceTest extends WebformElementBrowserTestBase {
public static $modules = [
'filter',
'user',
'node',
'webform',
];
protected static $testWebforms = [
'test_element_entity_reference',
];
public function testEntityReferenceTest() {
$webform = Webform::load('test_element_entity_reference');
$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'");
}
}