provider-packages-can-be-installed-if-selected.test 852 B

123456789101112131415161718192021222324252627282930313233343536
  1. --TEST--
  2. Test that providers can be installed if they are selected and the package they provide is not 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. "require": {
  19. "foo/does-not-exist": "1.0.0"
  20. },
  21. "version": "1.0.0"
  22. }
  23. ]
  24. }
  25. ],
  26. "require": {
  27. "foo/standard": "1.0.0",
  28. "foo/polyfill": "1.0.0"
  29. }
  30. }
  31. --RUN--
  32. update
  33. --EXPECT--
  34. Installing foo/polyfill (1.0.0)