View source
<?php
namespace Drupal\Tests\webform_views\Kernel\field;
class TextfieldWebformViewsTest extends WebformViewsFieldTestBase {
protected $webform_elements = [
'element' => [
'#type' => 'textfield',
'#title' => 'Textfield',
],
];
protected $webform_submissions_data = [
[
'element' => 'Submission 1',
],
[
'element' => 'Submission 2',
],
];
protected $webform_submission_multivalue_data = [
[
'element' => [
'Submission 1.1',
'Submission 1.2',
],
],
[
'element' => [
'Submission 2.1',
'Submission 2.2',
],
],
];
protected $view_handlers = [
'field' => [
[
'id' => 'element',
'table' => 'webform_submission_field_webform_element',
'field' => 'webform_submission_value',
'options' => [],
],
],
];
}