updating-dev-from-lock-removes-old-deps.test 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --TEST--
  2. Installing locked dev packages should remove old dependencies
  3. --COMPOSER--
  4. {
  5. "require": {
  6. "a/devpackage": "dev-master"
  7. },
  8. "minimum-stability": "dev"
  9. }
  10. --LOCK--
  11. {
  12. "packages": [
  13. {
  14. "name": "a/devpackage", "version": "dev-master",
  15. "source": { "reference": "newref", "url": "", "type": "git" },
  16. "require": {}
  17. }
  18. ],
  19. "packages-dev": [],
  20. "aliases": [],
  21. "minimum-stability": "dev",
  22. "stability-flags": [],
  23. "prefer-stable": false,
  24. "prefer-lowest": false
  25. }
  26. --INSTALLED--
  27. [
  28. {
  29. "name": "a/devpackage", "version": "dev-master",
  30. "source": { "reference": "oldref", "url": "", "type": "git" },
  31. "require": {
  32. "a/dependency": "*"
  33. }
  34. },
  35. {
  36. "name": "a/dependency", "version": "dev-master",
  37. "source": { "reference": "ref", "url": "", "type": "git" },
  38. "require": {}
  39. }
  40. ]
  41. --RUN--
  42. install
  43. --EXPECT--
  44. Removing a/dependency (dev-master ref)
  45. Marking a/dependency (9999999-dev ref) as uninstalled, alias of a/dependency (dev-master ref)
  46. Upgrading a/devpackage (dev-master oldref => dev-master newref)