1
0
Fork 0

Add test covering edge case of composer repo format, closes #11206

pull/11230/head
Jordi Boggiano 2022-12-17 23:15:36 +01:00
parent 8969f8062a
commit 3534499c6b
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 13 additions and 0 deletions

View File

@ -89,6 +89,19 @@ class ComposerRepositoryTest extends TestCase
],
]],
],
// New repository format but without versions as keys should also be supported
[
[
['name' => 'bar/foo', 'version' => '3.14'],
['name' => 'bar/foo', 'version' => '3.145'],
],
['packages' => [
'bar/foo' => [
['name' => 'bar/foo', 'version' => '3.14'],
['name' => 'bar/foo', 'version' => '3.145'],
],
]],
],
];
}