install-dev-using-dist.test 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --TEST--
  2. Installs a dev package from lock using dist
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "a/a",
  11. "version": "dev-master",
  12. "version_normalized": "9999999-dev",
  13. "dist": {
  14. "type": "zip",
  15. "url": "http://www.example.com/dist.zip",
  16. "reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6"
  17. }
  18. }
  19. ]
  20. }
  21. ],
  22. "require": {
  23. "a/a": "dev-master"
  24. },
  25. "minimum-stability": "dev"
  26. }
  27. --RUN--
  28. install --prefer-dist
  29. --EXPECT-LOCK--
  30. {
  31. "packages": [
  32. {
  33. "name": "a/a",
  34. "version": "dev-master",
  35. "dist": {
  36. "type": "zip",
  37. "url": "http://www.example.com/dist.zip",
  38. "reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6"
  39. },
  40. "type": "library"
  41. }
  42. ],
  43. "packages-dev": [],
  44. "aliases": [],
  45. "minimum-stability": "dev",
  46. "stability-flags": {
  47. "a/a": 20
  48. },
  49. "prefer-stable": false,
  50. "prefer-lowest": false,
  51. "platform": [],
  52. "platform-dev": []
  53. }
  54. --EXPECT--
  55. Installing a/a (dev-master)
  56. Marking a/a (9999999-dev) as installed, alias of a/a (dev-master)