replace-root-require.test 573 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Ensure a transiently required replacer can replace root requirements
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/a", "version": "1.0.0" },
  10. { "name": "b/b", "version": "1.0.0", "require": {"c/c": "1.*"} },
  11. { "name": "c/c", "version": "1.0.0", "replace": {"a/a": "1.0.0" }}
  12. ]
  13. }
  14. ],
  15. "require": {
  16. "a/a": "1.*",
  17. "b/b": "1.*"
  18. }
  19. }
  20. --RUN--
  21. install
  22. --EXPECT--
  23. Installing c/c (1.0.0)
  24. Installing b/b (1.0.0)