2020-06-06 15:16:54 +00:00
|
|
|
--TEST--
|
|
|
|
Check root aliases get selected correctly
|
|
|
|
|
|
|
|
--ROOT--
|
|
|
|
{
|
|
|
|
"stability-flags": {
|
|
|
|
"a/aliased": "dev"
|
|
|
|
},
|
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"package": "a/aliased",
|
|
|
|
"version": "dev-master",
|
|
|
|
"alias": "1.0.0"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"references": {
|
|
|
|
"a/aliased": "abcd"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
--REQUEST--
|
|
|
|
{
|
|
|
|
"require": {
|
|
|
|
"a/aliased": "dev-master",
|
|
|
|
"b/requirer": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--FIXED--
|
|
|
|
[
|
|
|
|
]
|
|
|
|
|
|
|
|
--PACKAGES--
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "dev-master",
|
|
|
|
"source": { "reference": "orig", "type": "git", "url": "" }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "1.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "b/requirer", "version": "1.0.0",
|
|
|
|
"require": { "a/aliased": "1.0.0" },
|
|
|
|
"source": { "reference": "1.0.0", "type": "git", "url": "" }
|
|
|
|
}
|
|
|
|
]
|
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
[
|
|
|
|
"a/aliased-dev-master#abcd",
|
|
|
|
"a/aliased-1.0.0.0#abcd (alias of dev-master)",
|
2020-06-06 15:18:42 +00:00
|
|
|
"b/requirer-1.0.0.0#1.0.0",
|
2020-06-06 15:16:54 +00:00
|
|
|
"a/aliased-9999999-dev#abcd (alias of dev-master)"
|
|
|
|
]
|