2012-05-27 22:11:47 +00:00
|
|
|
--TEST--
|
2013-10-14 08:49:34 +00:00
|
|
|
Update with a package whitelist only updates those packages listed as command arguments
|
2012-05-27 22:11:47 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
|
|
|
{ "name": "fixed", "version": "1.1.0" },
|
|
|
|
{ "name": "fixed", "version": "1.0.0" },
|
2013-10-14 08:49:34 +00:00
|
|
|
{ "name": "whitelisted", "version": "1.1.0", "require": { "dependency": "1.*" } },
|
|
|
|
{ "name": "whitelisted", "version": "1.0.0", "require": { "dependency": "1.*" } },
|
2012-05-27 22:11:47 +00:00
|
|
|
{ "name": "dependency", "version": "1.1.0" },
|
2012-05-27 23:25:34 +00:00
|
|
|
{ "name": "dependency", "version": "1.0.0" },
|
|
|
|
{ "name": "unrelated", "version": "1.1.0", "require": { "unrelated-dependency": "1.*" } },
|
|
|
|
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
|
|
|
|
{ "name": "unrelated-dependency", "version": "1.1.0" },
|
|
|
|
{ "name": "unrelated-dependency", "version": "1.0.0" }
|
2012-05-27 22:11:47 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"fixed": "1.*",
|
2012-05-27 23:25:34 +00:00
|
|
|
"whitelisted": "1.*",
|
|
|
|
"unrelated": "1.*"
|
2012-05-27 22:11:47 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "fixed", "version": "1.0.0" },
|
2013-10-14 08:49:34 +00:00
|
|
|
{ "name": "whitelisted", "version": "1.0.0", "require": { "dependency": "1.*" } },
|
2012-05-27 23:25:34 +00:00
|
|
|
{ "name": "dependency", "version": "1.0.0" },
|
|
|
|
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
|
|
|
|
{ "name": "unrelated-dependency", "version": "1.0.0" }
|
2012-05-27 22:11:47 +00:00
|
|
|
]
|
2019-09-07 05:53:31 +00:00
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{ "name": "fixed", "version": "1.0.0" },
|
|
|
|
{ "name": "whitelisted", "version": "1.0.0", "require": { "dependency": "1.*" } },
|
|
|
|
{ "name": "dependency", "version": "1.0.0" },
|
|
|
|
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
|
|
|
|
{ "name": "unrelated-dependency", "version": "1.0.0" }
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "dev",
|
|
|
|
"stability-flags": [],
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2012-05-27 22:11:47 +00:00
|
|
|
--RUN--
|
|
|
|
update whitelisted
|
|
|
|
--EXPECT--
|
|
|
|
Updating whitelisted (1.0.0) to whitelisted (1.1.0)
|