You are here

public function EnvironmentConfigOverrideTest::testStaticOverridesWithArray in Config override 8

File

tests/Unit/EnvironmentConfigOverrideTest.php, line 77

Class

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

Namespace

Drupal\config_override\Tests\Unit

Code

public function testStaticOverridesWithArray() {
  $sut = new EnvironmentConfigOverride([
    'example' => [
      'key' => '{"hey":"giraffe"}',
    ],
  ]);
  $this
    ->assertEquals([
    'example' => [
      'key' => [
        'hey' => 'giraffe',
      ],
    ],
  ], $sut
    ->loadOverrides([
    'example',
  ]));
}