1
0
Fork 0
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:
Jordi Boggiano 2024-04-29 11:19:52 +02:00
parent 877f1b150f
commit 80631d2fc8
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
2 changed files with 8 additions and 0 deletions

View file

@ -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],