public function SortsFieldTest::provideSortOrders in Search API sorts 8
Provides mock data and expected results for ::testActiveSortOrder.
Return value
array An array of mocked data.
File
- tests/
src/ Unit/ SortsFieldTest.php, line 63
Class
- SortsFieldTest
- Tests the sorts field.
Namespace
Drupal\Tests\search_api_sorts\UnitCode
public function provideSortOrders() {
return [
[
'asc',
'asc',
],
[
'desc',
'desc',
],
[
'aaa',
'asc',
],
[
NULL,
'asc',
],
];
}