1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/install-missing-alias-from-...

44 lines
1.2 KiB
Plaintext
Raw Normal View History

--TEST--
Installing an old alias that doesn't exist anymore from a lock is possible
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "2.2.x-dev" } },
"source": { "reference": "master", "type": "git", "url": "" }
}
]
}
],
"require": {
"a/a": "2.1.*"
},
"minimum-stability": "dev"
}
--LOCK--
{
"packages": [
{
"name": "a/a", "version": "dev-master", "version_normalized": "9999999-dev",
"extra": { "branch-alias": { "dev-master": "2.1.x-dev" } },
"source": { "reference": "oldmaster", "type": "git", "url": "" },
"type": "library"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
2014-12-13 22:56:15 +00:00
"prefer-stable": false,
"prefer-lowest": false
}
--RUN--
install
--EXPECT--
Installing a/a (dev-master oldmaster)
Marking a/a (2.1.x-dev oldmaster) as installed, alias of a/a (dev-master oldmaster)