update-all.test 963 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --TEST--
  2. Updates updateable packages
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/a", "version": "1.0.0" },
  10. { "name": "a/a", "version": "1.0.1" },
  11. { "name": "a/a", "version": "1.1.0" },
  12. { "name": "a/b", "version": "1.0.0" },
  13. { "name": "a/b", "version": "1.0.1" },
  14. { "name": "a/b", "version": "2.0.0" },
  15. { "name": "a/c", "version": "1.0.0" },
  16. { "name": "a/c", "version": "2.0.0" }
  17. ]
  18. }
  19. ],
  20. "require": {
  21. "a/a": "1.0.*",
  22. "a/c": "1.*"
  23. },
  24. "require-dev": {
  25. "a/b": "*"
  26. }
  27. }
  28. --INSTALLED--
  29. [
  30. { "name": "a/a", "version": "1.0.0" },
  31. { "name": "a/c", "version": "1.0.0" },
  32. { "name": "a/b", "version": "1.0.0" }
  33. ]
  34. --RUN--
  35. update
  36. --EXPECT--
  37. Upgrading a/a (1.0.0 => 1.0.1)
  38. Upgrading a/b (1.0.0 => 2.0.0)