protected function StorageTestBase::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/KeyValueStore/StorageTestBase.php \Drupal\system\Tests\KeyValueStore\StorageTestBase::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
2 calls to StorageTestBase::setUp()
- DatabaseStorageExpirableTest::setUp in core/
modules/ system/ src/ Tests/ KeyValueStore/ DatabaseStorageExpirableTest.php - Performs setup tasks before each individual test method is run.
- DatabaseStorageTest::setUp in core/
modules/ system/ src/ Tests/ KeyValueStore/ DatabaseStorageTest.php - Performs setup tasks before each individual test method is run.
2 methods override StorageTestBase::setUp()
- DatabaseStorageExpirableTest::setUp in core/
modules/ system/ src/ Tests/ KeyValueStore/ DatabaseStorageExpirableTest.php - Performs setup tasks before each individual test method is run.
- DatabaseStorageTest::setUp in core/
modules/ system/ src/ Tests/ KeyValueStore/ DatabaseStorageTest.php - Performs setup tasks before each individual test method is run.
File
- core/
modules/ system/ src/ Tests/ KeyValueStore/ StorageTestBase.php, line 38 - Contains \Drupal\system\Tests\KeyValueStore\StorageTestBase.
Class
- StorageTestBase
- Base class for testing key-value storages.
Namespace
Drupal\system\Tests\KeyValueStoreCode
protected function setUp() {
parent::setUp();
// Define two data collections,
$this->collections = array(
0 => 'zero',
1 => 'one',
);
// Create several objects for testing.
for ($i = 0; $i <= 5; $i++) {
$this->objects[$i] = $this
->randomObject();
}
}