1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- --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"
- }
- ],
- "packages-dev": [],
- "aliases": [],
- "minimum-stability": "dev",
- "stability-flags": [],
- "prefer-stable": false,
- "prefer-lowest": false,
- "platform": [],
- "platform-dev": []
- }
- --EXPECT--
- Upgrading a/a (dev-master 1234 => dev-master master)
|