public function SessionCacheContextTest::testContextWithoutSessionInRequest in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::testContextWithoutSessionInRequest()
- 10 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());
}