You are here

public function MockSessionTrait::resetSessionStore in Examples for Developers 8

Same name and namespace in other branches
  1. 3.x modules/stream_wrapper_example/tests/src/Traits/MockSessionTrait.php \Drupal\Tests\stream_wrapper_example\Traits\MockSessionTrait::resetSessionStore()

Helper for our mocks.

File

stream_wrapper_example/tests/src/Traits/MockSessionTrait.php, line 97

Class

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

Namespace

Drupal\Tests\stream_wrapper_example\Traits

Code

public function resetSessionStore() {
  $this->sessionStore = [];
}