update-no-dev-still-resolves-dev.test 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --TEST--
  2. Updates with --no-dev but we still end up with a complete lock file including dev deps
  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. { "name": "dev/pkg", "version": "dev-master", "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } }, "source": {"type":"git", "url":"", "reference":"new"} },
  18. { "name": "dev/pkg", "version": "1.0.0" }
  19. ]
  20. }
  21. ],
  22. "require": {
  23. "a/a": "1.0.*",
  24. "a/c": "1.*",
  25. "dev/pkg": "^1.0@dev"
  26. },
  27. "require-dev": {
  28. "a/b": "*"
  29. }
  30. }
  31. --INSTALLED--
  32. [
  33. { "name": "a/a", "version": "1.0.0" },
  34. { "name": "a/b", "version": "1.0.0" },
  35. { "name": "dev/pkg", "version": "dev-master", "extra": { "branch-alias": { "dev-master": "1.0.x-dev" } }, "source": {"type":"git", "url":"", "reference":"old"} }
  36. ]
  37. --EXPECT-LOCK--
  38. {
  39. "packages": [
  40. { "name": "a/a", "version": "1.0.1", "type": "library" },
  41. { "name": "a/c", "version": "1.0.0", "type": "library" },
  42. { "name": "dev/pkg", "version": "dev-master", "extra": { "branch-alias": { "dev-master": "1.1.x-dev" } }, "source": {"type":"git", "url":"", "reference":"new"}, "type": "library" }
  43. ],
  44. "packages-dev": [
  45. { "name": "a/b", "version": "2.0.0", "type": "library" }
  46. ],
  47. "aliases": [],
  48. "minimum-stability": "stable",
  49. "stability-flags": {
  50. "dev/pkg": 20
  51. },
  52. "prefer-stable": false,
  53. "prefer-lowest": false,
  54. "platform": [],
  55. "platform-dev": []
  56. }
  57. --RUN--
  58. update --no-dev
  59. --EXPECT--
  60. Removing a/b (1.0.0)
  61. Marking dev/pkg (1.0.x-dev old) as uninstalled, alias of dev/pkg (dev-master old)
  62. Upgrading a/a (1.0.0 => 1.0.1)
  63. Installing a/c (1.0.0)
  64. Upgrading dev/pkg (dev-master old => dev-master new)
  65. Marking dev/pkg (1.1.x-dev new) as installed, alias of dev/pkg (dev-master new)