update-installed-reference-dry-run.test 780 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Updating a dev package forcing it's reference, using dry run, should not do anything if the referenced version is the installed one
  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": "def000", "url": "", "type": "git" },
  25. "dist": { "reference": "def000", "url": "", "type": "zip", "shasum": "" }
  26. }
  27. ]
  28. --RUN--
  29. update --dry-run
  30. --EXPECT--