You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.2 KiB
Plaintext
45 lines
1.2 KiB
Plaintext
--TEST--
|
|
|
|
See Github issue #6661 ( github.com/composer/composer/issues/6661 ).
|
|
|
|
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.
|
|
|
|
--COMPOSER--
|
|
{
|
|
"repositories": [
|
|
{
|
|
"type": "package",
|
|
"package": [
|
|
{ "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" } }
|
|
]
|
|
}
|
|
],
|
|
"require": {
|
|
"a/a": "~1.0",
|
|
"b/b": "~1.0"
|
|
}
|
|
}
|
|
|
|
--INSTALLED--
|
|
[
|
|
{ "name": "a/a", "version": "1.0.0" },
|
|
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } }
|
|
]
|
|
|
|
--RUN--
|
|
update b/b --with-all-dependencies
|
|
|
|
--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--
|
|
Updating a/a (1.0.0) to a/a (1.1.0)
|
|
Updating b/b (1.0.0) to b/b (1.1.0)
|