public function CacheCollectorTest::providerTestInvalidCharacters in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Cache/CacheCollectorTest.php \Drupal\KernelTests\Core\Cache\CacheCollectorTest::providerTestInvalidCharacters()
- 9 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 52
Class
- CacheCollectorTest
- Tests DatabaseBackend cache tag implementation.
Namespace
Drupal\KernelTests\Core\CacheCode
public function providerTestInvalidCharacters() {
return [
// Nothing special.
[
'foo',
'bar',
'baz',
],
// Invalid characters in CID.
// cSpell:disable-next-line
[
'éøïвβ中國書۞',
'foo',
'bar',
],
// Really long CID.
[
$this
->randomString(1024),
'foo',
'bar',
],
];
}