1
0
Fork 0

Partial updates without a lock file are no longer possible, update test

pull/7936/head
Nils Adermann 2019-10-29 23:12:54 +01:00
parent 4481cc4a88
commit 5c129be5e7
1 changed files with 5 additions and 36 deletions

View File

@ -1,5 +1,5 @@
--TEST--
Partial update without lock file should update everything whitelisted, remove overly unstable packages
Partial update without lock file should error
--COMPOSER--
{
"repositories": [
@ -28,41 +28,10 @@ Partial update without lock file should update everything whitelisted, remove ov
{ "name": "c/uptodate", "version": "1.0.0" },
{ "name": "d/removed", "version": "1.0.0" }
]
--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": "dev",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
--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" },
{ "name": "c/uptodate", "version": "1.0.0", "type": "library" },
{ "name": "d/removed", "version": "1.0.0", "type": "library" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
--EXPECT-OUTPUT--
Cannot update only a partial set of packages without a lock file present.
--EXPECT-EXIT-CODE--
1
--EXPECT--
Updating b/unstable (1.1.0-alpha) to b/unstable (1.0.0)