Updated ApplicationConfigCustomizer to support new keys in the future

This commit is contained in:
Alejandro Celaya
2018-09-30 18:20:27 +02:00
parent 3a75ac0486
commit 757cf2e193
4 changed files with 42 additions and 12 deletions

View File

@@ -79,12 +79,14 @@ class ApplicationConfigCustomizerTest extends TestCase
$config = new CustomizableAppConfig();
$config->setApp([
'SECRET' => 'foo',
'DISABLE_TRACK_PARAM' => 'the_new_secret',
]);
$this->plugin->process($this->io->reveal(), $config);
$this->assertEquals([
'SECRET' => 'foo',
'DISABLE_TRACK_PARAM' => 'the_new_secret',
], $config->getApp());
$confirm->shouldHaveBeenCalledTimes(1);
}