function TagTest::providerViewsUiAutocompleteIndividualTags

Same name and namespace in other branches
  1. 11.x core/modules/views_ui/tests/src/Kernel/TagTest.php \Drupal\Tests\views_ui\Kernel\TagTest::providerViewsUiAutocompleteIndividualTags()
  2. 9 core/modules/views_ui/tests/src/Kernel/TagTest.php \Drupal\Tests\views_ui\Kernel\TagTest::providerViewsUiAutocompleteIndividualTags()
  3. 8.9.x core/modules/views_ui/tests/src/Kernel/TagTest.php \Drupal\Tests\views_ui\Kernel\TagTest::providerViewsUiAutocompleteIndividualTags()
  4. main 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 103

Class

TagTest
Tests the views ui tagging functionality.

Namespace

Drupal\Tests\views_ui\Kernel

Code

public static 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',
    ],
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.