--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": [
        { "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": []
}
--INSTALLED--
[
    { "name": "toupdate/installed", "version": "1.0.0" },
    { "name": "old/installed", "version": "0.9.0" }
]
--RUN--
update toupdate/installed
--EXPECT--
Updating old/installed (0.9.0) to old/installed (1.0.0)
Updating toupdate/installed (1.0.0) to toupdate/installed (1.1.0)
Installing toupdate/notinstalled (1.0.0)