function SessionCacheContextTest::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::setUp()
- 10 core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::setUp()
- 11.x core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php \Drupal\Tests\Core\Cache\Context\SessionCacheContextTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Cache/ Context/ SessionCacheContextTest.php, line 37
Class
- SessionCacheContextTest
- @coversDefaultClass \Drupal\Core\Cache\Context\SessionCacheContext @group Cache
Namespace
Drupal\Tests\Core\Cache\ContextCode
public function setUp() {
$this->request = new Request();
$this->requestStack = new RequestStack();
$this->requestStack
->push($this->request);
$this->session = $this->getMockBuilder('\\Symfony\\Component\\HttpFoundation\\Session\\SessionInterface')
->getMock();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.