1
0
Fork 0

Add test to assert prefer-lowest behavior when conflicting branches prevent absolute lowest version from being installed, closes #7408

pull/8943/head
Jordi Boggiano 2020-06-03 08:33:14 +02:00
parent 36f3982285
commit fafa959933
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,29 @@
--TEST--
Assert that prefer-lowest can not pick the lowest version of all packages when two branches are valid but conflict with each other
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{"name": "req/pkg", "version": "1.0.0", "require": {"req/pkg2": "^1.2"}},
{"name": "req/pkg2", "version": "1.0.0", "require": {"req/pkg": "^1.2"}},
{"name": "req/pkg", "version": "1.2.0", "require": {"req/pkg2": "^1.0"}},
{"name": "req/pkg2", "version": "1.2.0", "require": {"req/pkg": "^1.0"}},
{"name": "req/pkg", "version": "1.4.0", "require": {"req/pkg2": "^1.0"}},
{"name": "req/pkg2", "version": "1.4.0", "require": {"req/pkg": "^1.0"}}
]
}
],
"require": {
"req/pkg": "*",
"req/pkg2": "*"
}
}
--RUN--
update --prefer-lowest
--EXPECT--
Installing req/pkg2 (1.2.0)
Installing req/pkg (1.0.0)