2013-03-10 18:55:26 +00:00
|
|
|
--TEST--
|
|
|
|
Partial update from lock file should update everything to the state of the lock, remove overly unstable packages
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "a/old", "version": "1.0.0" },
|
|
|
|
{ "name": "a/old", "version": "2.0.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.0.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha" },
|
|
|
|
{ "name": "c/uptodate", "version": "1.0.0" },
|
|
|
|
{ "name": "d/removed", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/old": "*",
|
|
|
|
"b/unstable": "*",
|
|
|
|
"c/uptodate": "*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/old", "version": "1.0.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha" },
|
|
|
|
{ "name": "c/uptodate", "version": "1.0.0" },
|
|
|
|
{ "name": "d/removed", "version": "1.0.0" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": {
|
|
|
|
"b/unstable": 15
|
|
|
|
},
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2013-03-10 18:55:26 +00:00
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a/old", "version": "0.9.0" },
|
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha" },
|
|
|
|
{ "name": "c/uptodate", "version": "2.0.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update b/unstable
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
2014-10-03 12:48:28 +00:00
|
|
|
{ "name": "a/old", "version": "1.0.0", "type": "library", "abandoned": false },
|
|
|
|
{ "name": "b/unstable", "version": "1.0.0", "type": "library", "abandoned": false },
|
|
|
|
{ "name": "c/uptodate", "version": "1.0.0", "type": "library", "abandoned": false }
|
2013-03-10 18:55:26 +00:00
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": [],
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2013-03-10 18:55:26 +00:00
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
|
|
|
--EXPECT--
|
|
|
|
Updating a/old (0.9.0) to a/old (1.0.0)
|
|
|
|
Updating c/uptodate (2.0.0) to c/uptodate (1.0.0)
|
|
|
|
Updating b/unstable (1.1.0-alpha) to b/unstable (1.0.0)
|