You are here

protected function SessionHelperTest::setUp in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/stream_wrapper_example/tests/src/Unit/SessionHelperTest.php \Drupal\Tests\stream_wrapper_example\Unit\SessionHelperTest::setUp()

Overrides UnitTestCase::setUp

File

stream_wrapper_example/tests/src/Unit/SessionHelperTest.php, line 35

Class

SessionHelperTest
PHPUnit test for the SessionHelper session manipulation class.

Namespace

Drupal\Tests\stream_wrapper_example\Unit

Code

protected function setUp() {
  parent::setUp();

  // Mock the session service.
  $this
    ->createSessionMock();

  // Set up the example.
  $helper = new SessionHelper($this->requestStack);
}