update-alias.test 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --TEST--
  2. Update aliased package to non-aliased version
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/a", "version": "dev-master",
  11. "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
  12. "source": { "reference": "master", "type": "git", "url": "" }
  13. },
  14. {
  15. "name": "a/a", "version": "dev-foo",
  16. "source": { "reference": "foo", "type": "git", "url": "" }
  17. }
  18. ]
  19. }
  20. ],
  21. "require": {
  22. "a/a": "dev-foo"
  23. }
  24. }
  25. --INSTALLED--
  26. [
  27. {
  28. "name": "a/a", "version": "dev-master",
  29. "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } },
  30. "source": { "reference": "master", "type": "git", "url": "" }
  31. }
  32. ]
  33. --RUN--
  34. update
  35. --EXPECT--
  36. Marking a/a (1.0.x-dev master) as uninstalled, alias of a/a (dev-master master)
  37. Upgrading a/a (dev-master master => dev-foo foo)