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" },
|
2016-04-18 22:33:04 +00:00
|
|
|
{ "name": "b/unstable", "version": "1.0.0", "require": {"f/dependency": "1.*"} },
|
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha", "require": {"f/dependency": "1.*"} },
|
2013-03-10 18:55:26 +00:00
|
|
|
{ "name": "c/uptodate", "version": "1.0.0" },
|
2016-04-18 22:33:04 +00:00
|
|
|
{ "name": "d/removed", "version": "1.0.0" },
|
|
|
|
{ "name": "e/newreq", "version": "1.0.0" },
|
|
|
|
{ "name": "f/dependency", "version": "1.1.0" },
|
|
|
|
{ "name": "f/dependency", "version": "1.0.0" }
|
2013-03-10 18:55:26 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a/old": "*",
|
|
|
|
"b/unstable": "*",
|
2020-10-14 08:57:23 +00:00
|
|
|
"c/uptodate": "*",
|
|
|
|
"e/newreq": "*"
|
2013-03-10 18:55:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/old", "version": "1.0.0" },
|
2016-04-18 22:33:04 +00:00
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha", "require": {"f/dependency": "1.*"} },
|
2013-03-10 18:55:26 +00:00
|
|
|
{ "name": "c/uptodate", "version": "1.0.0" },
|
2016-04-18 22:33:04 +00:00
|
|
|
{ "name": "d/removed", "version": "1.0.0" },
|
|
|
|
{ "name": "e/newreq", "version": "1.0.0" },
|
|
|
|
{ "name": "f/dependency", "version": "1.0.0" }
|
2013-03-10 18:55:26 +00:00
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": {
|
|
|
|
"b/unstable": 15
|
|
|
|
},
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2013-03-10 18:55:26 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a/old", "version": "0.9.0" },
|
2016-04-18 22:33:04 +00:00
|
|
|
{ "name": "b/unstable", "version": "1.1.0-alpha", "require": {"f/dependency": "1.*"} },
|
|
|
|
{ "name": "c/uptodate", "version": "2.0.0" },
|
|
|
|
{ "name": "f/dependency", "version": "1.0.0" }
|
2013-03-10 18:55:26 +00:00
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update b/unstable
|
|
|
|
--EXPECT-LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "a/old", "version": "1.0.0", "type": "library" },
|
2016-04-18 22:33:04 +00:00
|
|
|
{ "name": "b/unstable", "version": "1.0.0", "type": "library", "require": {"f/dependency": "1.*"} },
|
|
|
|
{ "name": "c/uptodate", "version": "1.0.0", "type": "library" },
|
|
|
|
{ "name": "e/newreq", "version": "1.0.0", "type": "library" },
|
|
|
|
{ "name": "f/dependency", "version": "1.0.0", "type": "library" }
|
2013-03-10 18:55:26 +00:00
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
2024-09-18 14:32:40 +00:00
|
|
|
"stability-flags": {},
|
2014-07-07 17:51:00 +00:00
|
|
|
"prefer-stable": false,
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-lowest": false,
|
2024-09-18 14:32:40 +00:00
|
|
|
"platform": {},
|
|
|
|
"platform-dev": {}
|
2013-03-10 18:55:26 +00:00
|
|
|
}
|
|
|
|
--EXPECT--
|
2020-02-11 12:43:38 +00:00
|
|
|
Upgrading a/old (0.9.0 => 1.0.0)
|
2020-02-11 10:33:52 +00:00
|
|
|
Downgrading b/unstable (1.1.0-alpha => 1.0.0)
|
|
|
|
Downgrading c/uptodate (2.0.0 => 1.0.0)
|
2016-04-18 22:33:04 +00:00
|
|
|
Installing e/newreq (1.0.0)
|