You are here

public function WebformViewsArgumentTestBase::providerArgument in Webform Views Integration 8.5

Data provider for the ::testArgument() method.

You might want to override this method with more specific cases in a child class.

File

tests/src/Kernel/argument/WebformViewsArgumentTestBase.php, line 40

Class

WebformViewsArgumentTestBase
Reasonable starting point for testing webform views argument handlers.

Namespace

Drupal\Tests\webform_views\Kernel\argument

Code

public function providerArgument() {
  $tests = [];
  foreach ($this->webform_submissions_data as $submission) {
    $element = array_keys($submission);
    $element = reset($element);
    $tests[] = [
      $submission[$element],
      [
        $submission,
      ],
    ];
  }
  return $tests;
}