1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/update-mirrors-fails-with-n...

66 lines
1.5 KiB
Plaintext
Raw Normal View History

--TEST--
Update mirrors with a new root require which is not yet in lock should simply ignore it
--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"},
{"name": "b/b", "version": "1.1.0"},
{"name": "new/req", "version": "1.0.0"},
{"name": "new/req", "version": "1.1.0"}
]
}
],
"require": {
"a/a": "1.*",
"new/req": "1.*"
},
"require-dev": {
"b/b": "1.*"
}
}
--INSTALLED--
[
{"name": "a/a", "version": "1.0.0"},
{"name": "b/b", "version": "1.0.0"}
]
--LOCK--
{
"packages": [
{"name": "a/a", "version": "1.0.0", "type": "library"}
],
"packages-dev": [
{"name": "b/b", "version": "1.0.0", "type": "library"}
],
"aliases": [],
"minimum-stability": "dev",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
}
--RUN--
update mirrors
--EXPECT-LOCK--
{
"packages": [
{"name": "a/a", "version": "1.0.0", "type": "library"}
],
"packages-dev": [
{"name": "b/b", "version": "1.0.0", "type": "library"}
],
"aliases": [],
"minimum-stability": "stable",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
"prefer-stable": false,
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
}
--EXPECT--