1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/update-dev-to-new-ref-picks...

46 lines
1.3 KiB
Plaintext
Raw Normal View History

--TEST--
Updating a dev package to its latest ref should pick up new dependencies
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
2020-06-19 13:35:09 +00:00
"name": "a/devpackage", "version": "dev-main",
"source": { "reference": "newref", "url": "https://example.org", "type": "git" },
"require": {
"a/dependency": "*"
2020-06-19 13:35:09 +00:00
},
"default-branch": true
},
{
2020-06-19 13:35:09 +00:00
"name": "a/dependency", "version": "dev-main",
"source": { "reference": "ref", "url": "https://example.org", "type": "git" },
2020-06-19 13:35:09 +00:00
"require": {},
"default-branch": true
}
]
}
],
"require": {
2020-06-19 13:35:09 +00:00
"a/devpackage": "dev-main"
},
"minimum-stability": "dev"
}
--INSTALLED--
[
{
2020-06-19 13:35:09 +00:00
"name": "a/devpackage", "version": "dev-main",
"source": { "reference": "oldref", "url": "https://example.org", "type": "git" },
2020-06-19 13:35:09 +00:00
"require": {},
"default-branch": true
}
]
--RUN--
update
--EXPECT--
2020-06-19 13:35:09 +00:00
Installing a/dependency (dev-main ref)
Marking a/dependency (9999999-dev ref) as installed, alias of a/dependency (dev-main ref)
Upgrading a/devpackage (dev-main oldref => dev-main newref)