suggest-installed.test 853 B

12345678910111213141516171819202122232425262728293031323334
  1. --TEST--
  2. Suggestions are not displayed for installed packages
  3. --COMPOSER--
  4. {
  5. "repositories": [
  6. {
  7. "type": "package",
  8. "package": [
  9. { "name": "a/a", "version": "1.0.0", "suggest": { "b/b": "an obscure reason" } },
  10. { "name": "b/b", "version": "1.0.0" }
  11. ]
  12. }
  13. ],
  14. "require": {
  15. "a/a": "1.0.0",
  16. "b/b": "1.0.0"
  17. }
  18. }
  19. --RUN--
  20. update
  21. --EXPECT-OUTPUT--
  22. Loading composer repositories with package information
  23. Updating dependencies
  24. Lock file operations: 2 installs, 0 updates, 0 removals
  25. - Locking a/a (1.0.0)
  26. - Locking b/b (1.0.0)
  27. Writing lock file
  28. Installing dependencies from lock file (including require-dev)
  29. Package operations: 2 installs, 0 updates, 0 removals
  30. Generating autoload files
  31. --EXPECT--
  32. Installing a/a (1.0.0)
  33. Installing b/b (1.0.0)