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--
|
|
|
|
[
|
|
|
|
]
|
|
|
|
|
2020-08-28 10:15:19 +00:00
|
|
|
--PACKAGE-REPOS--
|
2020-06-06 15:16:54 +00:00
|
|
|
[
|
2020-08-28 10:15:19 +00:00
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "a/aliased", "version": "dev-master",
|
|
|
|
"source": { "reference": "orig", "type": "git", "url": "" },
|
|
|
|
"default-branch": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"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": "" }
|
|
|
|
}
|
|
|
|
]
|
2020-06-06 15:16:54 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
--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)"
|
|
|
|
]
|