1
0
Fork 0

Fix test configurations, missing lock files, invalid ones

aliased alias test is failing because double alias is improperly
resolved now
pull/7936/head
Nils Adermann 2019-10-30 00:40:36 +01:00
parent 94d45a980c
commit e6e317bc27
7 changed files with 40 additions and 6 deletions

View File

@ -31,6 +31,6 @@ Installing double aliased package
install install
--EXPECT-- --EXPECT--
Installing b/b (dev-foo) Installing b/b (dev-foo)
Marking b/b (1.0.x-dev) as installed, alias of b/b (dev-foo)
Marking b/b (dev-master) as installed, alias of b/b (dev-foo) Marking b/b (dev-master) as installed, alias of b/b (dev-foo)
Installing a/a (dev-master) Installing a/a (dev-master)
Marking b/b (1.0.x-dev) as installed, alias of b/b (dev-foo)

View File

@ -21,7 +21,7 @@ Requirements from the composer file are not installed if the lock file is presen
"packages": [ "packages": [
{ "name": "required", "version": "1.0.0" } { "name": "required", "version": "1.0.0" }
], ],
"packages-dev": null, "packages-dev": [],
"aliases": [], "aliases": [],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": [], "stability-flags": [],
@ -31,4 +31,4 @@ Requirements from the composer file are not installed if the lock file is presen
--RUN-- --RUN--
install install
--EXPECT-- --EXPECT--
Installing required (1.0.0) Installing required (1.0.0)

View File

@ -74,8 +74,8 @@ update b/unstable
"platform-dev": [] "platform-dev": []
} }
--EXPECT-- --EXPECT--
Updating b/unstable (1.1.0-alpha) to b/unstable (1.0.0)
Updating a/old (0.9.0) to a/old (1.0.0) Updating a/old (0.9.0) to a/old (1.0.0)
Updating b/unstable (1.1.0-alpha) to b/unstable (1.0.0)
Updating c/uptodate (2.0.0) to c/uptodate (1.0.0) Updating c/uptodate (2.0.0) to c/uptodate (1.0.0)
Installing d/removed (1.0.0) Installing d/removed (1.0.0)
Installing e/newreq (1.0.0) Installing e/newreq (1.0.0)

View File

@ -23,7 +23,7 @@ The locked version will not get overwritten by an install
{ "name": "foo/bar", "version": "1.0.0" }, { "name": "foo/bar", "version": "1.0.0" },
{ "name": "foo/baz", "version": "2.0.0" } { "name": "foo/baz", "version": "2.0.0" }
], ],
"packages-dev": null, "packages-dev": [],
"aliases": [], "aliases": [],
"minimum-stability": "stable", "minimum-stability": "stable",
"stability-flags": [], "stability-flags": [],

View File

@ -41,6 +41,24 @@ Update with a package whitelist only updates those packages and their dependenci
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } }, { "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
{ "name": "unrelated-dependency", "version": "1.0.0" } { "name": "unrelated-dependency", "version": "1.0.0" }
] ]
--LOCK--
{
"packages": [
{ "name": "fixed", "version": "1.0.0" },
{ "name": "whitelisted-component1", "version": "1.0.0" },
{ "name": "whitelisted-component2", "version": "1.0.0", "require": { "dependency": "1.0.0" } },
{ "name": "root-dependency", "version": "1.0.0" },
{ "name": "dependency", "version": "1.0.0" },
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
{ "name": "unrelated-dependency", "version": "1.0.0" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {"a/a":20},
"prefer-stable": false,
"prefer-lowest": false
}
--RUN-- --RUN--
update whitelisted-* --with-dependencies update whitelisted-* --with-dependencies
--EXPECT-- --EXPECT--

View File

@ -33,6 +33,22 @@ Update with a package whitelist only updates those packages and their dependenci
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } }, { "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
{ "name": "unrelated-dependency", "version": "1.0.0" } { "name": "unrelated-dependency", "version": "1.0.0" }
] ]
--LOCK--
{
"packages": [
{ "name": "fixed", "version": "1.0.0" },
{ "name": "whitelisted", "version": "1.0.0", "require": { "dependency": "1.0.0" } },
{ "name": "dependency", "version": "1.0.0" },
{ "name": "unrelated", "version": "1.0.0", "require": { "unrelated-dependency": "1.*" } },
{ "name": "unrelated-dependency", "version": "1.0.0" }
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": {"a/a":20},
"prefer-stable": false,
"prefer-lowest": false
}
--RUN-- --RUN--
update whitelisted --with-dependencies update whitelisted --with-dependencies
--EXPECT-- --EXPECT--

View File

@ -28,7 +28,7 @@ Updating a dev package for new reference updates the url and reference
"dist": { "reference": "oldref", "url": "oldurl", "type": "zip", "shasum": "" } "dist": { "reference": "oldref", "url": "oldurl", "type": "zip", "shasum": "" }
} }
], ],
"packages-dev": null, "packages-dev": [],
"aliases": [], "aliases": [],
"minimum-stability": "dev", "minimum-stability": "dev",
"stability-flags": {"a/a":20}, "stability-flags": {"a/a":20},