1
0
Fork 0
composer/tests/Composer/Test/Fixtures/installer/update-alias-lock.test

63 lines
1.6 KiB
Plaintext
Raw Normal View History

--TEST--
Update aliased package does not mess up the lock file
--COMPOSER--
{
"repositories": [
{
"type": "package",
"package": [
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "master", "type": "git", "url": "" }
}
]
},
{
"type": "package",
"package": [
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "lowpriomaster", "type": "git", "url": "" }
}
]
}
],
"require": {
"a/a": "1.*"
},
"minimum-stability": "dev"
}
--INSTALLED--
[
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "1234", "type": "git", "url": "" }
}
]
--RUN--
update
--EXPECT-LOCK--
{
"packages": [
{
"name": "a/a", "version": "dev-master",
"extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
"source": { "reference": "master", "type": "git", "url": "" },
"type": "library"
}
],
2013-03-07 08:40:22 +00:00
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
2024-09-18 14:32:40 +00:00
"stability-flags": {},
"prefer-stable": false,
2014-12-13 22:56:15 +00:00
"prefer-lowest": false,
2024-09-18 14:32:40 +00:00
"platform": {},
"platform-dev": {}
}
--EXPECT--
Upgrading a/a (dev-master 1234 => dev-master master)