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