update-all-dry-run.test 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --TEST--
  2. Updates updateable packages in dry-run mode
  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 --dry-run
  36. --EXPECT-OUTPUT--
  37. Loading composer repositories with package information
  38. Updating dependencies
  39. Lock file operations: 3 installs, 0 updates, 0 removals
  40. - Locking a/a (1.0.1)
  41. - Locking a/b (2.0.0)
  42. - Locking a/c (1.0.0)
  43. Installing dependencies from lock file (including require-dev)
  44. Package operations: 0 installs, 2 updates, 0 removals
  45. - Upgrading a/a (1.0.0 => 1.0.1)
  46. - Upgrading a/b (1.0.0 => 2.0.0)
  47. --EXPECT--