function CacheCollectorTest::providerTestInvalidCharacters

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php \Drupal\KernelTests\Core\Cache\CacheCollectorTest::providerTestInvalidCharacters()
  2. 8.9.x core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php \Drupal\KernelTests\Core\Cache\CacheCollectorTest::providerTestInvalidCharacters()
  3. 11.x 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 55

Class

CacheCollectorTest
Tests DatabaseBackend cache tag implementation.

Namespace

Drupal\KernelTests\Core\Cache

Code

public static function providerTestInvalidCharacters() {
    return [
        // Nothing special.
[
            'foo',
            'bar',
            'baz',
        ],
        // Invalid characters in CID.
        // cSpell:disable-next-line
[
            'éøïвβ中國書۞',
            'foo',
            'bar',
        ],
        // Really long CID.
[
            Random::string(1024),
            'foo',
            'bar',
        ],
    ];
}

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