update-dev-to-new-ref-picks-up-changes.test 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --TEST--
  2. Updating a dev package to its latest ref should pick up new dependencies
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/devpackage", "version": "dev-master",
  11. "source": { "reference": "newref", "url": "", "type": "git" },
  12. "require": {
  13. "a/dependency": "*"
  14. }
  15. },
  16. {
  17. "name": "a/dependency", "version": "dev-master",
  18. "source": { "reference": "ref", "url": "", "type": "git" },
  19. "require": {}
  20. }
  21. ]
  22. }
  23. ],
  24. "require": {
  25. "a/devpackage": "dev-master"
  26. },
  27. "minimum-stability": "dev"
  28. }
  29. --INSTALLED--
  30. [
  31. {
  32. "name": "a/devpackage", "version": "dev-master",
  33. "source": { "reference": "oldref", "url": "", "type": "git" },
  34. "require": {}
  35. }
  36. ]
  37. --RUN--
  38. update
  39. --EXPECT--
  40. Installing a/dependency (dev-master ref)
  41. Marking a/dependency (9999999-dev ref) as installed, alias of a/dependency (dev-master ref)
  42. Upgrading a/devpackage (dev-master oldref => dev-master newref)