2014-11-26 18:51:13 +00:00
|
|
|
--TEST--
|
2020-06-07 21:15:09 +00:00
|
|
|
Update with a package allowed list removes unused packages
|
2014-11-26 18:51:13 +00:00
|
|
|
--COMPOSER--
|
|
|
|
{
|
|
|
|
"repositories": [
|
|
|
|
{
|
|
|
|
"type": "package",
|
|
|
|
"package": [
|
2020-06-07 21:15:09 +00:00
|
|
|
{ "name": "allowed", "version": "1.1.0" },
|
|
|
|
{ "name": "allowed", "version": "1.0.0", "require": { "fixed-dependency": "1.0.0", "old-dependency": "1.0.0" } },
|
2014-11-26 18:51:13 +00:00
|
|
|
{ "name": "fixed-dependency", "version": "1.1.0" },
|
|
|
|
{ "name": "fixed-dependency", "version": "1.0.0" },
|
|
|
|
{ "name": "old-dependency", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"require": {
|
2020-06-07 21:15:09 +00:00
|
|
|
"allowed": "1.*",
|
2014-11-26 18:51:13 +00:00
|
|
|
"fixed-dependency": "1.*"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
2020-06-07 21:15:09 +00:00
|
|
|
{ "name": "allowed", "version": "1.0.0", "require": { "old-dependency": "1.0.0", "fixed-dependency": "1.0.0" } },
|
2014-11-26 18:51:13 +00:00
|
|
|
{ "name": "fixed-dependency", "version": "1.0.0" },
|
|
|
|
{ "name": "old-dependency", "version": "1.0.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
2020-06-07 21:15:09 +00:00
|
|
|
update --with-dependencies allowed
|
2014-11-26 18:51:13 +00:00
|
|
|
--EXPECT--
|
|
|
|
Uninstalling old-dependency (1.0.0)
|
2020-06-07 21:15:09 +00:00
|
|
|
Updating allowed (1.0.0) to allowed (1.1.0)
|