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
153
+
Given a WP installation
154
+
And a wp-content/plugins/incompatible-plugin.php file:
155
+
"""
156
+
<?php
157
+
/**
158
+
* Plugin Name: Incompatible Plugin
159
+
* Requires PHP: 42.0
160
+
*/
161
+
"""
162
+
And I run `wp cli info | grep "PHP version" | awk '{print $3}'`
163
+
And save STDOUT as {PHP_VERSION}
164
+
165
+
When I try `wp plugin activate incompatible-plugin`
166
+
Then STDERR should contain:
167
+
"""
168
+
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