You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario: Incompatible plugins cannot be activated
154
-
Given a WP installation
155
-
And a wp-content/plugins/incompatible-plugin.php file:
156
-
"""
157
-
<?php
158
-
/**
159
-
* Plugin Name: Incompatible Plugin
160
-
* Requires PHP: 42.0
161
-
*/
162
-
"""
163
-
And I run `wp cli info | grep "PHP version" | awk '{print $3}'`
164
-
And save STDOUT as {PHP_VERSION}
165
-
166
-
When I try `wp plugin activate incompatible-plugin`
167
-
Then STDERR should contain:
168
-
"""
169
-
Failed to activate plugin. Current PHP version ({PHP_VERSION}) does not meet minimum requirements for Incompatible Plugin. The plugin requires PHP 42.0.
0 commit comments