wearerequired / traduttore

🗼 A WordPress plugin to improve the I18N workflow for your own projects based on @GlotPress.
https://wearerequired.github.io/traduttore/
72 stars 15 forks source link

Add tests for `language-pack` command #250

Open swissspidy opened 1 year ago

swissspidy commented 1 year ago

Issue Overview

Especially needed because of this bug where $projects is immediately overridden, so using --all doesn't really work:

https://github.com/wearerequired/traduttore/blob/a9faec1a8e3b3ddbcb5222d12c2c3bbf17f069fc/inc/CLI/LanguagePackCommand.php#L228-L247

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Versions

Additional context