public function SavedSearchCrudTest::postCreateDataProvider in Search API Saved Searches 8
Provides data for testPostCreate().
Return value
array Arrays of call arguments for testPostCreate().
See also
\Drupal\Tests\search_api_saved_searches\Kernel\SavedSearchCrudTest::testPostCreate()
File
- tests/
src/ Kernel/ SavedSearchCrudTest.php, line 116
Class
- SavedSearchCrudTest
- Tests CRUD functionality for saved searches.
Namespace
Drupal\Tests\search_api_saved_searches\KernelCode
public function postCreateDataProvider() {
return [
'existing label' => [
'Foobar',
'lorem',
'Foobar',
],
'with keys' => [
NULL,
'lorem',
'lorem',
],
'without keys' => [
NULL,
NULL,
'Saved search',
],
'with complex keys' => [
NULL,
[
'#conjunction' => 'AND',
'foo',
'bar',
],
'Saved search',
],
];
}