2017-09-11 15:16:15 +00:00
--TEST--
See Github issue #6661 ( github.com/composer/composer/issues/6661 ).
2020-06-07 21:15:09 +00:00
When `--with-all-dependencies` is used, Composer\Installer::allowListUpdateDependencies should update the dependencies of all allowed packages, even if the dependency is a root requirement.
2017-09-11 15:16:15 +00:00
--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" } }
2017-09-11 15:16:15 +00:00
]
}
],
"require": {
2019-01-29 12:27:52 +00:00
"a/a": "~1.0",
"b/b": "~1.0"
2017-09-11 15:16:15 +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" } }
2017-09-11 15:16:15 +00:00
]
--RUN--
2019-01-29 12:27:52 +00:00
update b/b --with-all-dependencies
2017-09-11 15:16:15 +00:00
--EXPECT-OUTPUT--
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 0 installs, 2 updates, 0 removals
Writing lock file
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)