plugins-are-installed-first.test 993 B

12345678910111213141516171819202122232425262728293031
  1. --TEST--
  2. Composer installers and their requirements are installed first
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "pkg", "version": "1.0.0" },
  10. { "name": "pkg2", "version": "1.0.0" },
  11. { "name": "inst", "version": "1.0.0", "type": "composer-plugin" },
  12. { "name": "inst-with-req", "version": "1.0.0", "type": "composer-plugin", "require": { "php": ">=5", "ext-json": "*", "composer-plugin-api": "*" } },
  13. { "name": "inst-with-req2", "version": "1.0.0", "type": "composer-plugin", "require": { "pkg2": "*" } }
  14. ]
  15. }
  16. ],
  17. "require": {
  18. "pkg": "1.0.0",
  19. "inst": "1.0.0",
  20. "inst-with-req2": "1.0.0",
  21. "inst-with-req": "1.0.0"
  22. }
  23. }
  24. --RUN--
  25. install
  26. --EXPECT--
  27. Installing inst (1.0.0)
  28. Installing inst-with-req (1.0.0)
  29. Installing pkg2 (1.0.0)
  30. Installing inst-with-req2 (1.0.0)
  31. Installing pkg (1.0.0)