function SearchApiEtHelperTest::dataProviderSplitItemId in Search API Entity Translation 7.2
Return value
array
File
- tests/
SearchApiEtHelperTest.php, line 36 - Helper class for SearchAPI ET
Class
- SearchApiEtHelperTest
- @file Helper class for SearchAPI ET
Code
function dataProviderSplitItemId() {
return array(
'entity_id' => array(
'123',
'123/en',
SearchApiEtHelper::ITEM_ID_ENTITY_ID,
),
'language' => array(
'en',
'123/en',
SearchApiEtHelper::ITEM_ID_LANGUAGE,
),
'split' => array(
array(
SearchApiEtHelper::ITEM_ID_ENTITY_ID => 123,
SearchApiEtHelper::ITEM_ID_LANGUAGE => 'en',
),
'123/en',
),
'wrong part 1' => array(
null,
'123/en',
'wrong-part',
),
);
}