You are here

public function CacheCollectorTest::providerTestInvalidCharacters in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php \Drupal\KernelTests\Core\Cache\CacheCollectorTest::providerTestInvalidCharacters()

Data provider for ::testCacheCollector().

File

core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php, line 68
\Drupal\KernelTests\Core\Cache\CacheCollectorTest.

Class

CacheCollectorTest
Tests DatabaseBackend cache tag implementation.

Namespace

Drupal\KernelTests\Core\Cache

Code

public function providerTestInvalidCharacters() {
  return [
    // Nothing special.
    [
      'foo',
      'bar',
      'baz',
    ],
    // Invalid characters in CID.
    [
      'éøïвβ中國書۞',
      'foo',
      'bar',
    ],
    // Really long CID.
    [
      $this
        ->randomString(1024),
      'foo',
      'bar',
    ],
  ];
}