mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix one more case of unsetting a key in an object
This commit is contained in:
parent
877f1b150f
commit
80631d2fc8
2 changed files with 8 additions and 0 deletions
|
@ -82,6 +82,11 @@ class ConfigCommandTest extends TestCase
|
|||
['setting-key' => 'preferred-install.foo/*', '--unset' => true],
|
||||
['config' => ['preferred-install' => []]],
|
||||
];
|
||||
yield 'unset platform' => [
|
||||
['config' => ['platform' => ['php' => '7.2.5'], 'platform-check' => false]],
|
||||
['setting-key' => 'platform.php', '--unset' => true],
|
||||
['config' => ['platform' => [], 'platform-check' => false]],
|
||||
];
|
||||
yield 'set extra with merge' => [
|
||||
[],
|
||||
['setting-key' => 'extra.patches.foo/bar', 'setting-value' => ['{"123":"value"}'], '--json' => true, '--merge' => true],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue