You are here

public function SearchApiEtHelperTest::dataProviderIsValidItemId in Search API Entity Translation 7.2

Return value

array

File

tests/SearchApiEtHelperTest.php, line 12
Helper class for SearchAPI ET

Class

SearchApiEtHelperTest
@file Helper class for SearchAPI ET

Code

public function dataProviderIsValidItemId() {
  return array(
    'test empty' => array(
      false,
      '',
    ),
    'test null' => array(
      false,
      '',
    ),
    'test back-slash' => array(
      false,
      '\\',
    ),
    'test back-slash length' => array(
      false,
      '1\\b',
    ),
    'test 1/' => array(
      false,
      '1/',
    ),
    'test 1/a' => array(
      true,
      '1/a',
    ),
    'test 1/en' => array(
      true,
      '1/en',
    ),
  );
}