public function WebformViewsSortTestBase::providerSort in Webform Views Integration 8.5
Data provider for the ::testSort() method.
You might want to override this method with more specific cases in a child class.
File
- tests/
src/ Kernel/ sort/ WebformViewsSortTestBase.php, line 45
Class
- WebformViewsSortTestBase
- Reasonable starting point for testing webform views sort handlers.
Namespace
Drupal\Tests\webform_views\Kernel\sortCode
public function providerSort() {
$tests = [];
$tests[] = [
'ASC',
$this->webform_submissions_data,
];
$tests[] = [
'DESC',
array_reverse($this->webform_submissions_data),
];
return $tests;
}