2020-06-06 15:16:54 +00:00
|
|
|
--TEST--
|
|
|
|
Check root aliases are loaded
|
|
|
|
|
|
|
|
--ROOT--
|
|
|
|
{
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"aliases": [
|
|
|
|
{
|
|
|
|
"package": "req/pkg",
|
|
|
|
"version": "dev-feature-foo",
|
|
|
|
"alias": "dev-master"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
--REQUEST--
|
|
|
|
{
|
|
|
|
"require": {
|
|
|
|
"package/a": "dev-master",
|
|
|
|
"req/pkg": "dev-feature-foo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--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": "req/pkg", "version": "dev-feature-foo",
|
|
|
|
"source": { "reference": "feat.f", "type": "git", "url": "" }
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "req/pkg", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "forked", "type": "git", "url": "" },
|
|
|
|
"default-branch": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "req/pkg", "version": "dev-master",
|
|
|
|
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
|
|
|
|
"source": { "reference": "master", "type": "git", "url": "" },
|
|
|
|
"default-branch": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "package/a", "version": "dev-master",
|
|
|
|
"require": { "req/pkg": "dev-master" },
|
|
|
|
"default-branch": true
|
|
|
|
}
|
|
|
|
]
|
2020-06-06 15:16:54 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
[
|
|
|
|
"req/pkg-dev-feature-foo#feat.f",
|
|
|
|
"req/pkg-dev-master#feat.f (alias of dev-feature-foo)",
|
2020-06-06 15:18:42 +00:00
|
|
|
"package/a-dev-master",
|
|
|
|
"package/a-9999999-dev (alias of dev-master)"
|
2020-06-06 15:16:54 +00:00
|
|
|
]
|