update-to-empty-from-locked.test 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --TEST--
  2. Update to a state without dependency works well from locked with dependency
  3. --COMPOSER--
  4. {
  5. "minimum-stability": "dev"
  6. }
  7. --INSTALLED--
  8. [
  9. {
  10. "name": "a/a", "version": "dev-master",
  11. "source": { "reference": "1234", "type": "git", "url": "" }
  12. }
  13. ]
  14. --LOCK--
  15. {
  16. "packages": [
  17. {
  18. "name": "a/a", "version": "dev-master",
  19. "source": { "reference": "1234", "type": "git", "url": "" },
  20. "type": "library"
  21. }
  22. ],
  23. "packages-dev": [],
  24. "aliases": [],
  25. "minimum-stability": "dev",
  26. "stability-flags": [],
  27. "prefer-stable": false,
  28. "prefer-lowest": false,
  29. "platform": [],
  30. "platform-dev": []
  31. }
  32. --RUN--
  33. update
  34. --EXPECT-LOCK--
  35. {
  36. "packages": [],
  37. "packages-dev": [],
  38. "aliases": [],
  39. "minimum-stability": "dev",
  40. "stability-flags": [],
  41. "prefer-stable": false,
  42. "prefer-lowest": false,
  43. "platform": [],
  44. "platform-dev": []
  45. }
  46. --EXPECT--
  47. Removing a/a (dev-master 1234)
  48. Marking a/a (9999999-dev 1234) as uninstalled, alias of a/a (dev-master 1234)