You are here

protected function WriteSafeSessionHandlerTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php \Drupal\Tests\Core\Session\WriteSafeSessionHandlerTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Session/WriteSafeSessionHandlerTest.php, line 30

Class

WriteSafeSessionHandlerTest
Tests \Drupal\Core\Session\WriteSafeSessionHandler.

Namespace

Drupal\Tests\Core\Session

Code

protected function setUp() {
  $this->wrappedSessionHandler = $this
    ->createMock('SessionHandlerInterface');
  $this->sessionHandler = new WriteSafeSessionHandler($this->wrappedSessionHandler);
}