function StateTest::setUpState
Initializes the $state with stub key-value storage.
5 calls to StateTest::setUpState()
- StateTest::testDelete in core/
tests/ Drupal/ Tests/ Core/ State/ StateTest.php - Tests both delete() & deleteMultiple() method.
- StateTest::testExistingGetValuesSetDuringRequest in core/
tests/ Drupal/ Tests/ Core/ State/ StateTest.php - Tests getValuesSetDuringRequest() method with an existing value.
- StateTest::testGetValuesSetDuringRequest in core/
tests/ Drupal/ Tests/ Core/ State/ StateTest.php - Tests the ::getValuesSetDuringRequest() method.
- StateTest::testResetCache in core/
tests/ Drupal/ Tests/ Core/ State/ StateTest.php - Tests both resetCache(), get() and getMultiple() method.
- StateTest::testSetMultipleBeforeGetMultiple in core/
tests/ Drupal/ Tests/ Core/ State/ StateTest.php - Tests getMultiple() method.
File
-
core/
tests/ Drupal/ Tests/ Core/ State/ StateTest.php, line 38
Class
- StateTest
- Tests Drupal\Core\State\State.
Namespace
Drupal\Tests\Core\StateCode
protected function setUpState() : void {
$this->keyValueStorage = $this->createStub(KeyValueStoreInterface::class);
$this->doSetUpState();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.