function CacheContextsManagerTest::testInvalidCalculatedContext
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::testInvalidCalculatedContext()
- 8.9.x core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::testInvalidCalculatedContext()
- 11.x core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::testInvalidCalculatedContext()
@covers ::convertTokensToKeys
@dataProvider providerTestInvalidCalculatedContext
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ CacheContextsManagerTest.php, line 141
Class
- CacheContextsManagerTest
- @coversDefaultClass \Drupal\Core\Cache\Context\CacheContextsManager @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function testInvalidCalculatedContext($context_token) : void {
$container = $this->getMockContainer();
$cache_contexts_manager = new CacheContextsManager($container, $this->getContextsFixture());
$this->expectException(\Exception::class);
$cache_contexts_manager->convertTokensToKeys([
$context_token,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.