protected function StorageTestBase::setUp in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/KeyValueStore/StorageTestBase.php \Drupal\KernelTests\Core\KeyValueStore\StorageTestBase::setUp()
Overrides KernelTestBase::setUp
1 call to StorageTestBase::setUp()
- DatabaseStorageExpirableTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ DatabaseStorageExpirableTest.php
1 method overrides StorageTestBase::setUp()
- DatabaseStorageExpirableTest::setUp in core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ DatabaseStorageExpirableTest.php
File
- core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ StorageTestBase.php, line 33
Class
- StorageTestBase
- Base class for testing key-value storages.
Namespace
Drupal\KernelTests\Core\KeyValueStoreCode
protected function setUp() {
parent::setUp();
// Define two data collections,
$this->collections = [
0 => 'zero',
1 => 'one',
];
// Create several objects for testing.
for ($i = 0; $i <= 5; $i++) {
$this->objects[$i] = $this
->randomObject();
}
}