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. 8.9.x core/tests/Drupal/Tests/Core/PageCache/NoSessionOpenTest.php \Drupal\Tests\Core\PageCache\NoSessionOpenTest::setUp()
  3. 10 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 35

Class

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

Namespace

Drupal\Tests\Core\PageCache

Code

protected function setUp() : void {
    parent::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.