function NoSessionOpenTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/PageCache/NoSessionOpenTest.php \Drupal\Tests\Core\PageCache\NoSessionOpenTest::setUp()
  2. 10 core/tests/Drupal/Tests/Core/PageCache/NoSessionOpenTest.php \Drupal\Tests\Core\PageCache\NoSessionOpenTest::setUp()
  3. 11.x core/tests/Drupal/Tests/Core/PageCache/NoSessionOpenTest.php \Drupal\Tests\Core\PageCache\NoSessionOpenTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/PageCache/NoSessionOpenTest.php, line 30

Class

NoSessionOpenTest
@coversDefaultClass \Drupal\Core\PageCache\RequestPolicy\NoSessionOpen @group PageCache

Namespace

Drupal\Tests\Core\PageCache

Code

protected function setUp() {
    $this->sessionConfiguration = $this->createMock('Drupal\\Core\\Session\\SessionConfigurationInterface');
    $this->policy = new NoSessionOpen($this->sessionConfiguration);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.