Updated DeprecatedConfigParser to remove the secret key

This commit is contained in:
Alejandro Celaya
2020-01-01 11:27:09 +01:00
parent 16d9c3b93f
commit d205405dcc
2 changed files with 25 additions and 1 deletions

View File

@@ -91,4 +91,21 @@ class DeprecatedConfigParserTest extends TestCase
$this->assertEquals($expected, $result);
}
/** @test */
public function removesTheOldSecretKey(): void
{
$config = [
'app_options' => [
'secret_key' => 'foobar',
],
];
$expected = [
'app_options' => [],
];
$result = ($this->postProcessor)($config);
$this->assertEquals($expected, $result);
}
}