1
0
Fork 0

Add test case verifying conflicts on alias prevent it from getting installed

pull/9477/head
Nils Adermann 2020-11-13 14:16:40 +01:00
parent 3d5be62250
commit 045b5c6b6b
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
--TEST--
Test that conflict on a branch alias is respected
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "some/dep", "version": "1.0.0" },
{ "name": "some/dep", "version": "1.1.0" },
{ "name": "some/dep", "version": "1.2.0" },
{ "name": "some/dep", "version": "dev-main", "extra": {"branch-alias": {"dev-main": "1.3.x-dev"} } },
{ "name": "some/dep", "version": "1.2.x-dev" }
]
}
],
"require": {
"some/dep": "^1.0@dev"
},
"conflict": {
"some/dep": ">=1.3"
}
}
--RUN--
update
--EXPECT--
Installing some/dep (1.2.x-dev)