update-dev-ignores-providers.test 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. Updating a dev package selects its newest version but no providers
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/replacer", "version": "dev-master",
  11. "source": { "reference": "wrong", "url": "", "type": "git" },
  12. "replace": {
  13. "a/installed": "dev-master"
  14. }
  15. },
  16. {
  17. "name": "a/installed", "version": "dev-master",
  18. "source": { "reference": "newref", "url": "", "type": "git" }
  19. }
  20. ]
  21. }
  22. ],
  23. "require": {
  24. "a/installed": "dev-master"
  25. },
  26. "minimum-stability": "dev"
  27. }
  28. --INSTALLED--
  29. [
  30. {
  31. "name": "a/installed", "version": "dev-master",
  32. "source": { "reference": "oldref", "url": "", "type": "git" }
  33. }
  34. ]
  35. --RUN--
  36. update
  37. --EXPECT--
  38. Upgrading a/installed (dev-master oldref => dev-master newref)