replace-alias.test 766 B

12345678910111213141516171819202122232425
  1. --TEST--
  2. Ensure a replacer package deals with branch aliases
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/a", "version": "dev-master", "replace": {"c/c": "self.version" }, "extra": { "branch-alias": {"dev-master": "1.0.x-dev"} } },
  10. { "name": "b/b", "version": "1.0.0", "require": {"c/c": "1.*"} },
  11. { "name": "c/c", "version": "dev-master", "extra": { "branch-alias": {"dev-master": "1.0.x-dev"} } }
  12. ]
  13. }
  14. ],
  15. "require": {
  16. "a/a": "dev-master",
  17. "b/b": "1.*"
  18. }
  19. }
  20. --RUN--
  21. install
  22. --EXPECT--
  23. Installing a/a (dev-master)
  24. Marking a/a (1.0.x-dev) as installed, alias of a/a (dev-master)
  25. Installing b/b (1.0.0)