You are here

protected function ImmutableConfigTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php \Drupal\Tests\Core\Config\ImmutableConfigTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Config/ImmutableConfigTest.php, line 22

Class

ImmutableConfigTest
@coversDefaultClass \Drupal\Core\Config\ImmutableConfig @group Config

Namespace

Drupal\Tests\Core\Config

Code

protected function setUp() {
  parent::setUp();
  $storage = $this
    ->createMock('Drupal\\Core\\Config\\StorageInterface');
  $event_dispatcher = $this
    ->createMock('Symfony\\Component\\EventDispatcher\\EventDispatcherInterface');
  $typed_config = $this
    ->createMock('Drupal\\Core\\Config\\TypedConfigManagerInterface');
  $this->config = new ImmutableConfig('test', $storage, $event_dispatcher, $typed_config);
}