public function EntityStringIdTest::entityStringIdList in Search API 8
Provides string IDs to test.
Return value
array An array of arrays which contain a list of parameters to be passed to the testUriStringId() test method.
File
- tests/
src/ Kernel/ Datasource/ EntityStringIdTest.php, line 145
Class
- EntityStringIdTest
- Tests indexing entities that use string IDs.
Namespace
Drupal\Tests\search_api\Kernel\DatasourceCode
public function entityStringIdList() {
return [
'Normal machine name' => [
'short_string_id',
],
'URL ID (with special characters)' => [
'http://drupal.org',
],
'Long ID' => [
str_repeat('a', 100),
],
];
}