function CacheContextsManagerTest::testInvalidCalculatedContext
Tests invalid calculated context.
@legacy-covers ::convertTokensToKeys
Attributes
#[DataProvider('providerTestInvalidCalculatedContext')]
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ CacheContextsManagerTest.php, line 149
Class
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.