You are here

protected function ReadOnlyStorageTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 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\Config

Code

protected function setUp() {

  // 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);
}