You are here

TextareaWebformViewsTest.php in Webform Views Integration 8.5

File

tests/src/Kernel/argument/TextareaWebformViewsTest.php
View source
<?php

namespace Drupal\Tests\webform_views\Kernel\argument;


/**
 * Test 'textarea' webform element as a views argument.
 *
 * @group webform_views_textarea
 */
class TextareaWebformViewsTest extends WebformViewsArgumentTestBase {
  protected $webform_elements = [
    'element' => [
      '#type' => 'textarea',
      '#title' => 'Text area',
    ],
  ];
  protected $webform_submissions_data = [
    [
      'element' => 'Submission 1',
    ],
    [
      'element' => 'Submission 2',
    ],
  ];
  protected $view_handlers = [
    'field' => [
      [
        'id' => 'element',
        'table' => 'webform_submission_field_webform_element',
        'field' => 'webform_submission_value',
        'options' => [],
      ],
    ],
    'argument' => [
      [
        'id' => 'element',
        'table' => 'webform_submission_field_webform_element',
        'field' => 'webform_submission_value',
        'options' => [
          'default_action' => 'not found',
        ],
      ],
    ],
  ];

}

Classes

Namesort descending Description
TextareaWebformViewsTest Test 'textarea' webform element as a views argument.