47 lines
1.1 KiB
Plaintext
47 lines
1.1 KiB
Plaintext
--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": "", "type": "git" },
|
|
"require": {}
|
|
}
|
|
],
|
|
"packages-dev": [],
|
|
"aliases": [],
|
|
"minimum-stability": "dev",
|
|
"stability-flags": [],
|
|
"prefer-stable": false,
|
|
"prefer-lowest": false
|
|
}
|
|
--INSTALLED--
|
|
[
|
|
{
|
|
"name": "a/devpackage", "version": "dev-master",
|
|
"source": { "reference": "oldref", "url": "", "type": "git" },
|
|
"require": {
|
|
"a/dependency": "*"
|
|
}
|
|
},
|
|
{
|
|
"name": "a/dependency", "version": "dev-master",
|
|
"source": { "reference": "ref", "url": "", "type": "git" },
|
|
"require": {}
|
|
}
|
|
]
|
|
--RUN--
|
|
install
|
|
--EXPECT--
|
|
Removing a/dependency (dev-master ref)
|
|
Upgrading a/devpackage (dev-master oldref => dev-master newref)
|
|
Marking a/dependency (9999999-dev ref) as uninstalled, alias of a/dependency (dev-master ref)
|