protected function ReadOnlyStorageTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::setUp()
- 9 core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::setUp()
Overrides UnitTestCase::setUp
File
- core/
tests/ Drupal/ Tests/ Core/ Config/ ReadOnlyStorageTest.php, line 36
Class
- ReadOnlyStorageTest
- @coversDefaultClass \Drupal\Core\Config\ReadOnlyStorage @group Config
Namespace
Drupal\Tests\Core\ConfigCode
protected function setUp() : void {
// Set up a memory storage we can manipulate to set fixtures.
$this->memory = new MemoryStorage();
// Wrap the memory storage in the read-only storage to test it.
$this->storage = new ReadOnlyStorage($this->memory);
}