suggest-prod-nolock.test 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. --TEST--
  2. Suggestions are displayed even in non-dev mode for new suggesters installed when updating the lock file
  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. ]
  11. }
  12. ],
  13. "require": {
  14. "a/a": "1.0.0"
  15. }
  16. }
  17. --RUN--
  18. install --no-dev
  19. --EXPECT-OUTPUT--
  20. <warning>No lock file found. Updating dependencies instead of installing from lock file. Use composer update over composer install if you do not have a lock file.</warning>
  21. Loading composer repositories with package information
  22. Updating dependencies
  23. Lock file operations: 1 install, 0 updates, 0 removals
  24. - Locking a/a (1.0.0)
  25. Writing lock file
  26. Installing dependencies from lock file
  27. Package operations: 1 install, 0 updates, 0 removals
  28. 1 package suggestions were added by new dependencies, use `composer suggest` to see details.
  29. Generating autoload files
  30. --EXPECT--
  31. Installing a/a (1.0.0)