function AnonymousPrivateTempStoreTest::testAnonymousCanUsePrivateTempStoreGet
Same name in other branches
- 9 core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php \Drupal\KernelTests\Core\TempStore\AnonymousPrivateTempStoreTest::testAnonymousCanUsePrivateTempStoreGet()
- 8.9.x core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php \Drupal\KernelTests\Core\TempStore\AnonymousPrivateTempStoreTest::testAnonymousCanUsePrivateTempStoreGet()
- 11.x core/tests/Drupal/KernelTests/Core/TempStore/AnonymousPrivateTempStoreTest.php \Drupal\KernelTests\Core\TempStore\AnonymousPrivateTempStoreTest::testAnonymousCanUsePrivateTempStoreGet()
Tests anonymous can get without a previous set.
File
-
core/
tests/ Drupal/ KernelTests/ Core/ TempStore/ AnonymousPrivateTempStoreTest.php, line 39
Class
- AnonymousPrivateTempStoreTest
- Tests the PrivateTempStore for anonymous users.
Namespace
Drupal\KernelTests\Core\TempStoreCode
public function testAnonymousCanUsePrivateTempStoreGet() : void {
$actual = $this->tempStore
->get('foo');
$this->assertNull($actual);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.