Closed stribert closed 6 years ago
Hi there, and thanks for the PR!
Interestingly, the test for checking that it can activate the plugin after installed is failing now. I think you just need to have it output the STDOUT from the command, as runcommand
seems to capture it.
Required a minor change to keep the tests passing, but all good now. Thanks for the contribution @stribert!
Using WP_CLI::runcommand is recomended: https://make.wordpress.org/cli/handbook/internal-api/wp-cli-run-command/
I use fabric (http://www.fabfile.org/) to interact with WP sites. When I ran 'wp login install --activate' I got a failed result with message: 'Success: Companion plugin installed.'. The success message was from installing the plugin, but the error code 1 came from activating the plugin. After making this change installing and activating goes smooth.