function AnonymousPrivateTempStoreTest::setUp
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php \Drupal\KernelTests\Core\TempStore\AnonymousPrivateTempStoreTest::setUp()
- 8.9.x core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php \Drupal\KernelTests\Core\TempStore\AnonymousPrivateTempStoreTest::setUp()
- 10 core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php \Drupal\KernelTests\Core\TempStore\AnonymousPrivateTempStoreTest::setUp()
Overrides KernelTestBase::setUp
File
-
core/
tests/ Drupal/ KernelTests/ Core/ TempStore/ AnonymousPrivateTempStoreTest.php, line 31
Class
- AnonymousPrivateTempStoreTest
- Tests the PrivateTempStore for anonymous users.
Namespace
Drupal\KernelTests\Core\TempStoreCode
protected function setUp() : void {
parent::setUp();
$this->tempStore = $this->container
->get('tempstore.private')
->get('anonymous_private_temp_store');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.