--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": [],
    "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)
