mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 12:13:13 +08:00
Updated DeprecatedConfigParser to remove the secret key
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user