function MockSessionTrait::setSessionStore

Same name in other branches
  1. 3.x modules/stream_wrapper_example/tests/src/Traits/MockSessionTrait.php \Drupal\Tests\stream_wrapper_example\Traits\MockSessionTrait::setSessionStore()
  2. 8.x-1.x stream_wrapper_example/tests/src/Traits/MockSessionTrait.php \Drupal\Tests\stream_wrapper_example\Traits\MockSessionTrait::setSessionStore()

Helper for our mocks.

File

modules/stream_wrapper_example/tests/src/Traits/MockSessionTrait.php, line 93

Class

MockSessionTrait
A trait to expose a mock session type to PHPUnit tests.

Namespace

Drupal\Tests\stream_wrapper_example\Traits

Code

public function setSessionStore($data) {
    $this->sessionStore = $data;
}