You are here

public function EnvironmentConfigOverrideTest::testStaticOverridesOverriddenNames in Config override 8

File

tests/Unit/EnvironmentConfigOverrideTest.php, line 29

Class

EnvironmentConfigOverrideTest
@coversDefaultClass \Drupal\config_override\EnvironmentConfigOverride @group config_override

Namespace

Drupal\config_override\Tests\Unit

Code

public function testStaticOverridesOverriddenNames() {
  $sut = new EnvironmentConfigOverride([
    'example' => [
      'key' => 'value',
    ],
  ]);
  $this
    ->assertEquals([
    'example' => [
      'key' => 'value',
    ],
  ], $sut
    ->loadOverrides([
    'example',
  ]));
}