2016-03-15 10:11:18 +00:00
|
|
|
--TEST--
|
|
|
|
|
|
|
|
See Github issue #4795 ( github.com/composer/composer/issues/4795 ).
|
|
|
|
|
|
|
|
Composer\Installer::whitelistUpdateDependencies should not output a warning for dependencies that need to be updated
|
|
|
|
that are also a root package, when that root package is also explicitly whitelisted.
|
|
|
|
|
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "a/a", "version": "1.1.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } },
|
|
|
|
{ "name": "b/b", "version": "1.1.0", "require": { "a/a": "~1.1" } }
|
2016-03-15 10:11:18 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2019-01-29 12:27:52 +00:00
|
|
|
"a/a": "~1.0",
|
|
|
|
"b/b": "~1.0"
|
2016-03-15 10:11:18 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
2019-01-29 12:27:52 +00:00
|
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
|
|
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } }
|
2016-03-15 10:11:18 +00:00
|
|
|
]
|
2019-09-07 00:28:40 +00:00
|
|
|
--LOCK--
|
|
|
|
{
|
|
|
|
"packages": [
|
|
|
|
{
|
|
|
|
"name": "a/a", "version": "1.0.0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" }
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"packages-dev": [],
|
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
|
|
|
"stability-flags": {},
|
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false,
|
|
|
|
"platform": [],
|
|
|
|
"platform-dev": []
|
|
|
|
}
|
2016-03-15 10:11:18 +00:00
|
|
|
--RUN--
|
2019-01-29 12:27:52 +00:00
|
|
|
update a/a b/b --with-dependencies
|
2016-03-15 10:11:18 +00:00
|
|
|
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
2019-09-07 00:28:40 +00:00
|
|
|
Updating dependencies
|
|
|
|
Lock file operations: 0 installs, 2 updates, 0 removals
|
|
|
|
- Updating a/a (1.0.0) to a/a (1.1.0)
|
2019-11-08 14:56:46 +00:00
|
|
|
- Updating b/b (1.0.0) to b/b (1.1.0)
|
2016-03-15 10:11:18 +00:00
|
|
|
Writing lock file
|
2019-09-07 00:28:40 +00:00
|
|
|
Installing dependencies from lock file (including require-dev)
|
|
|
|
Package operations: 0 installs, 2 updates, 0 removals
|
2016-03-15 10:11:18 +00:00
|
|
|
Generating autoload files
|
|
|
|
|
|
|
|
--EXPECT--
|
2019-01-29 12:27:52 +00:00
|
|
|
Updating a/a (1.0.0) to a/a (1.1.0)
|
|
|
|
Updating b/b (1.0.0) to b/b (1.1.0)
|