1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/updating-dev-from-lock-remo...

50 lines
1.3 KiB
Plaintext
Raw Normal View History

--TEST--
Installing locked dev packages should remove old dependencies
--COMPOSER--
{
"require": {
"a/devpackage": "dev-master"
},
"minimum-stability": "dev"
}
--LOCK--
{
"packages": [
{
"name": "a/devpackage", "version": "dev-master",
"source": { "reference": "newref", "url": "https://example.org", "type": "git" },
2020-06-19 13:35:09 +00:00
"require": {},
"default-branch": true
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
2014-12-13 22:56:15 +00:00
"prefer-stable": false,
"prefer-lowest": false
}
--INSTALLED--
[
{
"name": "a/devpackage", "version": "dev-master",
"source": { "reference": "oldref", "url": "https://example.org", "type": "git" },
"require": {
"a/dependency": "*"
2020-06-19 13:35:09 +00:00
},
"default-branch": true
},
{
"name": "a/dependency", "version": "dev-master",
"source": { "reference": "ref", "url": "https://example.org", "type": "git" },
2020-06-19 13:35:09 +00:00
"require": {},
"default-branch": true
}
]
--RUN--
install
--EXPECT--
Removing a/dependency (dev-master ref)
Marking a/dependency (9999999-dev ref) as uninstalled, alias of a/dependency (dev-master ref)
2020-04-20 20:02:07 +00:00
Upgrading a/devpackage (dev-master oldref => dev-master newref)