function CacheCollectorTest::testResolveCacheMiss
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php \Drupal\Tests\Core\Cache\CacheCollectorTest::testResolveCacheMiss()
- 8.9.x core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php \Drupal\Tests\Core\Cache\CacheCollectorTest::testResolveCacheMiss()
- 11.x core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php \Drupal\Tests\Core\Cache\CacheCollectorTest::testResolveCacheMiss()
Tests the resolve cache miss function.
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ CacheCollectorTest.php, line 69
Class
- CacheCollectorTest
- @coversDefaultClass \Drupal\Core\Cache\CacheCollector @group Cache
Namespace
Drupal\Tests\Core\CacheCode
public function testResolveCacheMiss() : void {
$key = $this->randomMachineName();
$value = $this->randomMachineName();
$this->collector
->setCacheMissData($key, $value);
$this->assertEquals($value, $this->collector
->get($key));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.