Closed figureone closed 2 years ago
Yeah I can work on that next week!
Got to it early!
$ composer behat -- features/check-plugin-deactivated.feature
$ composer behat -- features/check-plugin-active-count.feature
Tests should fail without the PR, and pass with it. Let me know if any tweaks are needed. Cheers
Looks great, thanks!
Aloha, in WordPress environments with no plugins installed, or multisite environments with only network-activated plugins, the
plugin-deactivated
check will throw a divide-by-zero warning:Example plugin list:
This pull request explicitly checks that there are more than 0 active/inactive plugins, and also adds the
active-network
status to the count of activated plugins in theplugin-active-count
andplugin-deactivated
checks. See the following for a list of valid statuses: https://developer.wordpress.org/cli/commands/plugin/list/Thanks!