1
0
Fork 0

PoolBuilder failing test: do not load alternatives for pkg replaced by fixed pkg

pull/8850/head
Nils Adermann 2020-04-29 23:01:57 +02:00 committed by Jordi Boggiano
parent bb4cabc0b9
commit 85ea29d241
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--
Packages replaced by fixed packages do not get loaded from the repos
--REQUEST--
{
"some/pkg": "*",
"root/req": "*"
}
--FIXED--
[
{"name": "some/pkg", "version": "1.0.3", "replace": {"dep/dep": "2.1.0"}, "id": 1}
]
--PACKAGES--
[
{"name": "some/pkg", "version": "1.0.0"},
{"name": "root/req", "version": "1.0.0", "require": {"dep/dep": "2.*"}},
{"name": "root/req", "version": "2.0.0", "require": {"dep/dep": "3.*"}},
{"name": "dep/dep", "version": "2.3.4"},
{"name": "dep/dep", "version": "3.0.1"}
]
--EXPECT--
[
1,
"root/req-1.0.0.0",
"root/req-2.0.0.0"
]