function SessionCacheContextTest::testContextWithoutSessionInRequest
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::testContextWithoutSessionInRequest()
@covers ::getContext
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ SessionCacheContextTest.php, line 93
Class
- SessionCacheContextTest
- @coversDefaultClass \Drupal\Core\Cache\Context\SessionCacheContext @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function testContextWithoutSessionInRequest() {
$cache_context = new SessionCacheContext($this->requestStack);
$this->assertSame('none', $cache_context->getContext());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.