You are here

protected function NoSessionOpenTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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() : void {
  $this->sessionConfiguration = $this
    ->createMock('Drupal\\Core\\Session\\SessionConfigurationInterface');
  $this->policy = new NoSessionOpen($this->sessionConfiguration);
}