You are here

public function TagTest::providerViewsUiAutocompleteIndividualTags in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views_ui/tests/src/Kernel/TagTest.php \Drupal\Tests\views_ui\Kernel\TagTest::providerViewsUiAutocompleteIndividualTags()

Data provider for testViewsUiAutocompleteIndividualTags().

Return value

array[] The data set.

File

core/modules/views_ui/tests/src/Kernel/TagTest.php, line 94

Class

TagTest
Tests the views ui tagging functionality.

Namespace

Drupal\Tests\views_ui\Kernel

Code

public function providerViewsUiAutocompleteIndividualTags() {
  return [
    'tag' => [
      'comma',
      'comma',
    ],
    'case insensitive tag' => [
      'comma',
      'COMMA',
    ],
    'Hello in Chinese (partial 1)' => [
      '你好',
      '你',
    ],
    'Hello in Chinese (partial 2)' => [
      '你好',
      '好',
    ],
    'Hello in Chinese' => [
      '你好',
      '你好',
    ],
    'Starts with partial and case-sensitive' => [
      'Foo bar',
      'Foo',
    ],
    'Starts with partial and case-insensitive' => [
      'Foo bar',
      'fOO',
    ],
    'Ends with partial and case-sensitive' => [
      'Foo bar',
      'bar',
    ],
    'Ends with partial and case-insensitive' => [
      'Foo bar',
      'BAR',
    ],
  ];
}