You are here

public function WebformViewsFieldTestBase::providerClickSort in Webform Views Integration 8.5

Data provider for the ::testClickSort() method.

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

File

tests/src/Kernel/field/WebformViewsFieldTestBase.php, line 136

Class

WebformViewsFieldTestBase
Reasonable starting point for testing webform views field handlers.

Namespace

Drupal\Tests\webform_views\Kernel\field

Code

public function providerClickSort() {
  $tests = [];
  $tests[] = [
    $this->view_handlers['field'][0]['id'],
    'asc',
    $this->webform_submissions_data,
  ];
  $tests[] = [
    $this->view_handlers['field'][0]['id'],
    'desc',
    array_reverse($this->webform_submissions_data),
  ];
  return $tests;
}