@@ -121,33 +121,33 @@ Feature: Validate checksums for WordPress plugins
121121 Given a WP install
122122 And these installed and active plugins:
123123 """
124- duplicate-post
125- wptouch
124+ debug-bar
125+ rtl-tester
126126 """
127127 And a wp-content/mu-plugins/hide-dp-plugin.php file:
128128 """
129129 <?php
130130 /**
131- * Plugin Name: Hide Duplicate Post plugin
131+ * Plugin Name: Hide Debug Bar plugin
132132 */
133133
134134 add_filter( 'all_plugins', function( $all_plugins ) {
135- unset( $all_plugins['duplicate-post/duplicate-post .php'] );
135+ unset( $all_plugins['debug-bar/debug-bar .php'] );
136136 return $all_plugins;
137137 } );
138138 """
139- And "Duplicate Post " replaced with "Different Name" in the wp-content/plugins/duplicate-post/duplicate-post .php file
139+ And "Debug Bar " replaced with "Different Name" in the wp-content/plugins/debug-bar/debug-bar .php file
140140
141141 When I run `wp plugin list --fields=name`
142142 Then STDOUT should not contain:
143143 """
144- duplicate-post
144+ debug-bar
145145 """
146146
147147 When I try `wp plugin verify-checksums --all --format=json`
148148 Then STDOUT should contain:
149149 """
150- "plugin_name":"duplicate-post ","file":"duplicate-post .php","message":"Checksum does not match"
150+ "plugin_name":"debug-bar ","file":"debug-bar .php","message":"Checksum does not match"
151151 """
152152
153153 Scenario : Plugin verification is skipped when the --exclude argument is included
@@ -159,7 +159,8 @@ Feature: Validate checksums for WordPress plugins
159159 Success:
160160 """
161161
162- When I run `wp plugin install akismet`
162+ # Ignore plugin's version requirements because we don't actually activate it.
163+ When I run `wp plugin install akismet --ignore-requirements`
163164 Then STDOUT should contain:
164165 """
165166 Success:
@@ -180,7 +181,8 @@ Feature: Validate checksums for WordPress plugins
180181 Success:
181182 """
182183
183- When I run `wp plugin install akismet`
184+ # Ignore plugin's version requirements because we don't actually activate it.
185+ When I run `wp plugin install akismet --ignore-requirements`
184186 Then STDOUT should contain:
185187 """
186188 Success:
0 commit comments