1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/update-no-dev-still-resolve...

69 lines
2.3 KiB
Plaintext

--TEST--
Updates with --no-dev but we still end up with a complete lock file including dev deps
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "a/a", "version": "1.0.0" },
{ "name": "a/a", "version": "1.0.1" },
{ "name": "a/a", "version": "1.1.0" },
{ "name": "a/b", "version": "1.0.0" },
{ "name": "a/b", "version": "1.0.1" },
{ "name": "a/b", "version": "2.0.0" },
{ "name": "a/c", "version": "1.0.0" },
{ "name": "a/c", "version": "2.0.0" },
{ "name": "dev/pkg", "version": "dev-master", "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } }, "source": {"type":"git", "url":"", "reference":"new"} },
{ "name": "dev/pkg", "version": "1.0.0" }
]
}
],
"require": {
"a/a": "1.0.*",
"a/c": "1.*",
"dev/pkg": "^1.0@dev"
},
"require-dev": {
"a/b": "*"
}
}
--INSTALLED--
[
{ "name": "a/a", "version": "1.0.0" },
{ "name": "a/b", "version": "1.0.0" },
{ "name": "dev/pkg", "version": "dev-master", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "source": {"type":"git", "url":"", "reference":"old"} }
]
--EXPECT-LOCK--
{
"packages": [
{ "name": "a/a", "version": "1.0.1", "type": "library" },
{ "name": "a/c", "version": "1.0.0", "type": "library" },
{ "name": "dev/pkg", "version": "dev-master", "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } }, "source": {"type":"git", "url":"", "reference":"new"}, "type": "library" }
],
"packages-dev": [
{ "name": "a/b", "version": "2.0.0", "type": "library" }
],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"dev/pkg": 20
},
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
--RUN--
update --no-dev
--EXPECT--
Removing a/b (1.0.0)
Upgrading a/a (1.0.0 => 1.0.1)
Installing a/c (1.0.0)
Upgrading dev/pkg (dev-master old => dev-master new)
Marking dev/pkg (1.1.x-dev new) as installed, alias of dev/pkg (dev-master new)
Marking dev/pkg (1.0.x-dev old) as uninstalled, alias of dev/pkg (dev-master old)