1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/partial-update-from-lock.test

82 lines
2.8 KiB
Plaintext
Raw Normal View History

--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", "require": {"f/dependency": "1.*"} },
{ "name": "b/unstable", "version": "1.1.0-alpha", "require": {"f/dependency": "1.*"} },
{ "name": "c/uptodate", "version": "1.0.0" },
{ "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" }
]
}
],
"require": {
"a/old": "*",
"b/unstable": "*",
"c/uptodate": "*"
}
}
--LOCK--
{
"packages": [
{ "name": "a/old", "version": "1.0.0" },
{ "name": "b/unstable", "version": "1.1.0-alpha", "require": {"f/dependency": "1.*"} },
{ "name": "c/uptodate", "version": "1.0.0" },
{ "name": "d/removed", "version": "1.0.0" },
{ "name": "e/newreq", "version": "1.0.0" },
{ "name": "f/dependency", "version": "1.0.0" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"b/unstable": 15
},
"prefer-stable": false,
2014-12-13 22:56:15 +00:00
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
--INSTALLED--
[
{ "name": "a/old", "version": "0.9.0" },
{ "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" }
]
--RUN--
update b/unstable
--EXPECT-LOCK--
{
"packages": [
{ "name": "a/old", "version": "1.0.0", "type": "library" },
{ "name": "b/unstable", "version": "1.0.0", "type": "library", "require": {"f/dependency": "1.*"} },
{ "name": "c/uptodate", "version": "1.0.0", "type": "library" },
{ "name": "d/removed", "version": "1.0.0", "type": "library" },
{ "name": "e/newreq", "version": "1.0.0", "type": "library" },
{ "name": "f/dependency", "version": "1.0.0", "type": "library" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
2014-12-13 22:56:15 +00:00
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
--EXPECT--
Downgrading b/unstable (1.1.0-alpha) to b/unstable (1.0.0)
Updating a/old (0.9.0) to a/old (1.0.0)
Downgrading c/uptodate (2.0.0) to c/uptodate (1.0.0)
Installing d/removed (1.0.0)
Installing e/newreq (1.0.0)