partial-update-without-lock.test 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --TEST--
  2. Partial update without lock file should update everything whitelisted, remove overly unstable packages
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/old", "version": "1.0.0" },
  10. { "name": "a/old", "version": "2.0.0" },
  11. { "name": "b/unstable", "version": "1.0.0" },
  12. { "name": "b/unstable", "version": "1.1.0-alpha" },
  13. { "name": "c/uptodate", "version": "1.0.0" },
  14. { "name": "d/removed", "version": "1.0.0" }
  15. ]
  16. }
  17. ],
  18. "require": {
  19. "a/old": "*",
  20. "b/unstable": "*",
  21. "c/uptodate": "*"
  22. }
  23. }
  24. --INSTALLED--
  25. [
  26. { "name": "a/old", "version": "1.0.0" },
  27. { "name": "b/unstable", "version": "1.1.0-alpha" },
  28. { "name": "c/uptodate", "version": "1.0.0" },
  29. { "name": "d/removed", "version": "1.0.0" }
  30. ]
  31. --RUN--
  32. update b/unstable
  33. --EXPECT-LOCK--
  34. {
  35. "packages": [
  36. { "name": "a/old", "version": "1.0.0", "type": "library" },
  37. { "name": "b/unstable", "version": "1.0.0", "type": "library" },
  38. { "name": "c/uptodate", "version": "1.0.0", "type": "library" },
  39. { "name": "d/removed", "version": "1.0.0", "type": "library" }
  40. ],
  41. "packages-dev": [],
  42. "aliases": [],
  43. "minimum-stability": "stable",
  44. "stability-flags": [],
  45. "prefer-stable": false,
  46. "prefer-lowest": false,
  47. "platform": [],
  48. "platform-dev": []
  49. }
  50. --EXPECT--
  51. Downgrading b/unstable (1.1.0-alpha) to b/unstable (1.0.0)