2012-07-01 16:03:01 +00:00
|
|
|
--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" }
|
2012-07-01 16:03:01 +00:00
|
|
|
],
|
2019-10-29 23:32:23 +00:00
|
|
|
"packages-dev": [],
|
2012-07-01 16:03:01 +00:00
|
|
|
"aliases": [],
|
|
|
|
"minimum-stability": "stable",
|
2014-07-07 17:51:00 +00:00
|
|
|
"stability-flags": [],
|
2014-12-13 22:56:15 +00:00
|
|
|
"prefer-stable": false,
|
|
|
|
"prefer-lowest": false
|
2012-07-01 16:03:01 +00:00
|
|
|
}
|
|
|
|
--INSTALLED--
|
|
|
|
[
|
|
|
|
{ "name": "toupdate/installed", "version": "1.0.0" },
|
|
|
|
{ "name": "old/installed", "version": "0.9.0" }
|
|
|
|
]
|
|
|
|
--RUN--
|
|
|
|
update toupdate/installed
|
|
|
|
--EXPECT--
|
2015-04-30 14:14:20 +00:00
|
|
|
Updating old/installed (0.9.0) to old/installed (1.0.0)
|
2019-10-29 23:32:23 +00:00
|
|
|
Updating toupdate/installed (1.0.0) to toupdate/installed (1.1.0)
|
2012-07-01 16:03:01 +00:00
|
|
|
Installing toupdate/notinstalled (1.0.0)
|