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

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. Updating a/devpackage (dev-master oldref) to a/devpackage (dev-master newref)