function SharedTempStoreTest::setUpMockKeyValue
Reinitializes the current user as a mock object.
12 calls to SharedTempStoreTest::setUpMockKeyValue()
- SharedTempStoreTest::testDelete in core/
tests/ Drupal/ Tests/ Core/ TempStore/ SharedTempStoreTest.php - Tests the delete() method.
- SharedTempStoreTest::testDeleteIfOwner in core/
tests/ Drupal/ Tests/ Core/ TempStore/ SharedTempStoreTest.php - Tests the deleteIfOwner() method.
- SharedTempStoreTest::testDeleteWithNoLockAvailable in core/
tests/ Drupal/ Tests/ Core/ TempStore/ SharedTempStoreTest.php - Tests the delete() method with no lock available.
- SharedTempStoreTest::testGet in core/
tests/ Drupal/ Tests/ Core/ TempStore/ SharedTempStoreTest.php - Tests get.
- SharedTempStoreTest::testGetIfOwner in core/
tests/ Drupal/ Tests/ Core/ TempStore/ SharedTempStoreTest.php - Tests the getIfOwner() method.
File
-
core/
tests/ Drupal/ Tests/ Core/ TempStore/ SharedTempStoreTest.php, line 108
Class
Namespace
Drupal\Tests\Core\TempStoreCode
protected function setUpMockKeyValue() : void {
$this->keyValue = $this->createMock(KeyValueStoreExpirableInterface::class);
$reflection = new \ReflectionProperty($this->tempStore, 'storage');
$reflection->setValue($this->tempStore, $this->keyValue);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.