update-reference.test 656 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Updates a dev package forcing it's reference
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/a", "version": "dev-master",
  11. "source": { "reference": "abc123", "url": "", "type": "git" }
  12. }
  13. ]
  14. }
  15. ],
  16. "require": {
  17. "a/a": "dev-master#def000"
  18. }
  19. }
  20. --INSTALLED--
  21. [
  22. {
  23. "name": "a/a", "version": "dev-master",
  24. "source": { "reference": "abc123", "url": "", "type": "git" }
  25. }
  26. ]
  27. --RUN--
  28. install
  29. --EXPECT--
  30. Upgrading a/a (dev-master abc123 => dev-master def000)