1
0
Fork 0

Fix alias tests to use default-branches

pull/8850/head
Jordi Boggiano 2020-07-17 15:35:21 +02:00
parent 6ba0f3adf9
commit 23339e44b8
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 8 additions and 4 deletions

View File

@ -35,16 +35,19 @@ Check root aliases are loaded
{ {
"name": "req/pkg", "version": "dev-master", "name": "req/pkg", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "forked", "type": "git", "url": "" } "source": { "reference": "forked", "type": "git", "url": "" },
"default-branch": true
}, },
{ {
"name": "req/pkg", "version": "dev-master", "name": "req/pkg", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "master", "type": "git", "url": "" } "source": { "reference": "master", "type": "git", "url": "" },
"default-branch": true
}, },
{ {
"name": "package/a", "version": "dev-master", "name": "package/a", "version": "dev-master",
"require": { "req/pkg": "dev-master" } "require": { "req/pkg": "dev-master" },
"default-branch": true
} }
] ]

View File

@ -35,7 +35,8 @@ Check root aliases get selected correctly
[ [
{ {
"name": "a/aliased", "version": "dev-master", "name": "a/aliased", "version": "dev-master",
"source": { "reference": "orig", "type": "git", "url": "" } "source": { "reference": "orig", "type": "git", "url": "" },
"default-branch": true
}, },
{ {
"name": "a/aliased", "version": "1.0" "name": "a/aliased", "version": "1.0"