update-installed-alias.test 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --TEST--
  2. Updates installed alias packages
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/a", "version": "dev-master",
  11. "require": { "b/b": "2.0.*" },
  12. "source": { "reference": "abcdef", "url": "", "type": "git" },
  13. "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }
  14. },
  15. {
  16. "name": "b/b", "version": "dev-master",
  17. "source": { "reference": "123456", "url": "", "type": "git" },
  18. "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } }
  19. }
  20. ]
  21. }
  22. ],
  23. "require": {
  24. "a/a": "~1.0@dev",
  25. "b/b": "@dev"
  26. }
  27. }
  28. --INSTALLED--
  29. [
  30. {
  31. "name": "a/a", "version": "dev-master",
  32. "require": { "b/b": "2.0.*" },
  33. "source": { "reference": "abcdef", "url": "", "type": "git" },
  34. "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }
  35. },
  36. {
  37. "name": "b/b", "version": "dev-master",
  38. "source": { "reference": "123456", "url": "", "type": "git" },
  39. "extra": { "branch-alias": { "dev-master": "2.0.x-dev" } }
  40. }
  41. ]
  42. --RUN--
  43. update
  44. --EXPECT--