1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/update-whitelist-reads-lock...

49 lines
1.5 KiB
Plaintext
Raw Normal View History

--TEST--
Limited update takes rules from lock if available, and not from the installed repo + composer.json
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{ "name": "toupdate/installed", "version": "1.1.0" },
{ "name": "toupdate/installed", "version": "1.0.0" },
{ "name": "toupdate/notinstalled", "version": "1.1.0" },
{ "name": "toupdate/notinstalled", "version": "1.0.0" },
{ "name": "old/installed", "version": "0.9.0" },
{ "name": "old/installed", "version": "1.0.0" }
]
}
],
"require": {
"toupdate/installed": "1.*",
"toupdate/notinstalled": "1.*",
"old/installed": "*"
}
}
--LOCK--
{
"packages": [
2013-03-28 19:42:25 +00:00
{ "name": "old/installed", "version": "1.0.0" },
{ "name": "toupdate/installed", "version": "1.0.0" },
{ "name": "toupdate/notinstalled", "version": "1.0.0" }
],
"packages-dev": null,
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
2014-12-13 22:56:15 +00:00
"prefer-stable": false,
"prefer-lowest": false
}
--INSTALLED--
[
{ "name": "toupdate/installed", "version": "1.0.0" },
{ "name": "old/installed", "version": "0.9.0" }
]
--RUN--
update toupdate/installed
--EXPECT--
Updating toupdate/installed (1.0.0) to toupdate/installed (1.1.0)
Updating old/installed (0.9.0) to old/installed (1.0.0)
Installing toupdate/notinstalled (1.0.0)