update-no-install.test 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --TEST--
  2. Updates without install updates the lock but not the installed state
  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 --no-install
  36. --EXPECT-LOCK--
  37. {
  38. "packages": [
  39. { "name": "a/a", "version": "1.0.1", "type": "library" },
  40. { "name": "a/c", "version": "1.0.0", "type": "library" }
  41. ],
  42. "packages-dev": [
  43. { "name": "a/b", "version": "2.0.0", "type": "library" }
  44. ],
  45. "aliases": [],
  46. "minimum-stability": "stable",
  47. "stability-flags": [],
  48. "prefer-stable": false,
  49. "prefer-lowest": false,
  50. "platform": [],
  51. "platform-dev": []
  52. }
  53. --EXPECT-INSTALLED--
  54. [
  55. { "name": "a/a", "version": "1.0.0", "type": "library" },
  56. { "name": "a/b", "version": "1.0.0", "type": "library" },
  57. { "name": "a/c", "version": "1.0.0", "type": "library" }
  58. ]
  59. --EXPECT--