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

38 lines
1.0 KiB
Plaintext
Raw Normal View History

--TEST--
Partial update without lock file should error
--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": "*"
}
}
--INSTALLED--
[
{ "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" }
]
--RUN--
update b/unstable
--EXPECT-OUTPUT--
Cannot update only a partial set of packages without a lock file present.
--EXPECT-EXIT-CODE--
1
--EXPECT--