protected function DatabaseStorageTest::setUp in Zircon Profile 8
Same name in this branch
- 8 core/modules/system/src/Tests/KeyValueStore/DatabaseStorageTest.php \Drupal\system\Tests\KeyValueStore\DatabaseStorageTest::setUp()
- 8 core/modules/config/src/Tests/Storage/DatabaseStorageTest.php \Drupal\config\Tests\Storage\DatabaseStorageTest::setUp()
Same name and namespace in other branches
- 8.0 core/modules/config/src/Tests/Storage/DatabaseStorageTest.php \Drupal\config\Tests\Storage\DatabaseStorageTest::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ config/ src/ Tests/ Storage/ DatabaseStorageTest.php, line 22 - Contains \Drupal\config\Tests\Storage\DatabaseStorageTest.
Class
- DatabaseStorageTest
- Tests DatabaseStorage operations.
Namespace
Drupal\config\Tests\StorageCode
protected function setUp() {
parent::setUp();
$this->storage = new DatabaseStorage($this->container
->get('database'), 'config');
$this->invalidStorage = new DatabaseStorage($this->container
->get('database'), 'invalid');
// ::listAll() verifications require other configuration data to exist.
$this->storage
->write('system.performance', array());
}