1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/github-issues-4795.test

62 lines
1.6 KiB
Plaintext
Raw Normal View History

2016-02-02 09:45:57 +00:00
--TEST--
See Github issue #4795 ( github.com/composer/composer/issues/4795 ).
Composer\Installer::whitelistUpdateDependencies intentionally ignores root requirements even if said package is also a
dependency of one the requirements that is whitelisted for update.
--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/b": "~1.1" } }
2016-02-02 09:45:57 +00:00
]
}
],
"require": {
"a/a": "~1.0",
"b/b": "~1.0"
2016-02-02 09:45:57 +00:00
}
}
--INSTALLED--
[
{ "name": "a/a", "version": "1.0.0" },
{ "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } }
2016-02-02 09:45:57 +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": "dev",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": []
}
2016-02-02 09:45:57 +00:00
--RUN--
update b/b --with-dependencies
2016-02-02 09:45:57 +00:00
--EXPECT-OUTPUT--
<warning>Dependency "a/a" is also a root requirement, but is not explicitly whitelisted. Ignoring.</warning>
2016-02-04 11:45:55 +00:00
Loading composer repositories with package information
Updating dependencies
Nothing to modify in lock file
2016-02-04 11:45:55 +00:00
Writing lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
2016-02-04 11:45:55 +00:00
Generating autoload files
2016-02-02 09:45:57 +00:00
--EXPECT--