provider-packages-can-be-installed-together-with-provided-if-both-installable.json 820 B

12345678910111213141516171819202122232425262728293031323334
  1. --TEST--
  2. Test that providers can be installed in conjunction with the package they provide if they are selected and the package they provide is also installable
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. {
  10. "name": "foo/polyfill",
  11. "provide": {
  12. "foo/standard": "1.0.0"
  13. },
  14. "version": "1.0.0"
  15. },
  16. {
  17. "name": "foo/standard",
  18. "version": "1.0.0"
  19. }
  20. ]
  21. }
  22. ],
  23. "require": {
  24. "foo/standard": "1.0.0",
  25. "foo/polyfill": "1.0.0"
  26. }
  27. }
  28. --RUN--
  29. update
  30. --EXPECT--
  31. Installing foo/standard (1.0.0)
  32. Installing foo/polyfill (1.0.0)