function SessionHelperTest::setUp

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

Overrides UnitTestCase::setUp

File

modules/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() : void {
    parent::setUp();
    // Mock the session service.
    $this->createSessionMock();
    // Set up the example.
    $helper = new SessionHelper($this->requestStack);
}