function MockSessionTrait::getSessionHelper
Same name in other branches
- 8.x-1.x stream_wrapper_example/tests/src/Traits/MockSessionTrait.php \Drupal\Tests\stream_wrapper_example\Traits\MockSessionTrait::getSessionHelper()
- 4.0.x modules/stream_wrapper_example/tests/src/Traits/MockSessionTrait.php \Drupal\Tests\stream_wrapper_example\Traits\MockSessionTrait::getSessionHelper()
Get a session helper.
2 calls to MockSessionTrait::getSessionHelper()
- StreamWrapperTest::getCurrentStore in modules/
stream_wrapper_example/ tests/ src/ Kernel/ StreamWrapperTest.php - Get the contents of the complete array stored in the session.
- StreamWrapperTest::resetStore in modules/
stream_wrapper_example/ tests/ src/ Kernel/ StreamWrapperTest.php - Clear the session storage area.
File
-
modules/
stream_wrapper_example/ tests/ src/ Traits/ MockSessionTrait.php, line 79
Class
- MockSessionTrait
- A trait to expose a mock session type to PHPUnit tests.
Namespace
Drupal\Tests\stream_wrapper_example\TraitsCode
public function getSessionHelper() {
return new SessionHelper($this->requestStack);
}