function VariationCacheTest::assertVariationCacheMiss
Same name in other branches
- 11.x core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php \Drupal\Tests\Core\Cache\VariationCacheTest::assertVariationCacheMiss()
Asserts that an item could not be retrieved from the variation cache.
Parameters
\Drupal\Core\Cache\CacheableMetadata $initial_cacheability: The initial cacheability that should be used.
4 calls to VariationCacheTest::assertVariationCacheMiss()
- VariationCacheTest::testNestedVariations in core/
tests/ Drupal/ Tests/ Core/ Cache/ VariationCacheTest.php - Tests a cache item that has nested variations.
- VariationCacheTest::testNestedVariationsSelfHealing in core/
tests/ Drupal/ Tests/ Core/ Cache/ VariationCacheTest.php - Tests a cache item that has nested variations that trigger self-healing.
- VariationCacheTest::testSingleVariation in core/
tests/ Drupal/ Tests/ Core/ Cache/ VariationCacheTest.php - Tests a cache item that only ever varies by one context.
- VariationCacheTest::testSplitVariationsSelfHealing in core/
tests/ Drupal/ Tests/ Core/ Cache/ VariationCacheTest.php - Tests self-healing for a cache item that has split variations.
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ VariationCacheTest.php, line 480
Class
- VariationCacheTest
- @coversDefaultClass \Drupal\Core\Cache\VariationCache @group Cache
Namespace
Drupal\Tests\Core\CacheCode
protected function assertVariationCacheMiss(CacheableMetadata $initial_cacheability) {
$this->assertFalse($this->variationCache
->get($this->cacheKeys, $initial_cacheability), 'Nothing could be retrieved for the active cache contexts.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.