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": [
|
|
|
|
{ "name": "a", "version": "1.0.0" },
|
|
|
|
{ "name": "a", "version": "1.1.0" },
|
|
|
|
{ "name": "b", "version": "1.0.0", "require": { "a": "~1.0" } },
|
|
|
|
{ "name": "b", "version": "1.1.0", "require": { "a": "~1.1" } }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
|
|
|
"a": "~1.0",
|
|
|
|
"b": "~1.0"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "a", "version": "1.0.0" },
|
|
|
|
{ "name": "b", "version": "1.0.0", "require": { "a": "~1.0" } }
|
|
|
|
]
|
|
|
|
|
|
|
|
--RUN--
|
|
|
|
update a b --with-dependencies
|
|
|
|
|
|
|
|
--EXPECT-OUTPUT--
|
|
|
|
Loading composer repositories with package information
|
|
|
|
Updating dependencies (including require-dev)
|
2016-10-29 15:03:08 +00:00
|
|
|
Package operations: 0 installs, 2 updates, 0 removals
|
2016-03-15 10:11:18 +00:00
|
|
|
Writing lock file
|
|
|
|
Generating autoload files
|
|
|
|
|
|
|
|
--EXPECT--
|
|
|
|
Updating a (1.0.0) to a (1.1.0)
|
|
|
|
Updating b (1.0.0) to b (1.1.0)
|