public function CacheContextsManagerTest::testInvalidCalculatedContext in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest::testInvalidCalculatedContext()
@covers ::convertTokensToKeys
@expectedException \Exception
@dataProvider providerTestInvalidCalculatedContext
File
- core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ CacheContextsManagerTest.php, line 125 - Contains \Drupal\Tests\Core\Cache\Context\CacheContextsManagerTest.
Class
- CacheContextsManagerTest
- @coversDefaultClass \Drupal\Core\Cache\Context\CacheContextsManager @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function testInvalidCalculatedContext($context_token) {
$container = $this
->getMockContainer();
$cache_contexts_manager = new CacheContextsManager($container, $this
->getContextsFixture());
$cache_contexts_manager
->convertTokensToKeys([
$context_token,
]);
}