@@ -167,7 +167,7 @@ Feature: Validate checksums for WordPress plugins
167167 """
168168
169169 When I try `wp plugin verify-checksums --all --exclude=akismet`
170- Then STDOUT should match /^Success: Verified 0 of \d plugins \(\d skipped\)\.$ /
170+ Then STDOUT should match /^Success: Verified \d of \d plugins \(\d skipped\)\./
171171
172172 Scenario : Plugin is verified when the --exclude argument isn't included
173173 Given a WP install
@@ -186,7 +186,7 @@ Feature: Validate checksums for WordPress plugins
186186 """
187187
188188 When I try `wp plugin verify-checksums --all`
189- Then STDOUT should match /^Success: Verified 1 of \d plugins/
189+ Then STDOUT should match /^Success: Verified \d of \d plugins/
190190
191191 # Hello Dolly was moved from a single file to a directory in WordPress 6.9
192192 @less-than-wp-6.9
@@ -210,8 +210,12 @@ Feature: Validate checksums for WordPress plugins
210210 When I run `mv wp-content/plugins/duplicate-post wp-content/mu-plugins/`
211211 Then STDERR should be empty
212212
213- When I run `wp plugin verify-checksums --all`
214- Then STDOUT should match /^Success: Verified 1 of \d plugins/
213+ When I try `wp plugin verify-checksums --all`
214+ Then STDOUT should match /Success: Verified \d of \d plugins/
215+ And STDERR should not contain:
216+ """
217+ duplicate-post
218+ """
215219
216220 Scenario : Exclude must-use plugins from verification
217221 Given a WP install
@@ -246,10 +250,7 @@ Feature: Validate checksums for WordPress plugins
246250 """
247251 "plugin_name":"duplicate-post","file":"duplicate-post.php","message":"Checksum does not match"
248252 """
249- And STDERR should contain:
250- """
251- Error: No plugins verified (1 failed).
252- """
253+ And STDERR should match /Error: Only verified \d of \d plugins/
253254
254255 Scenario : Single-file must-use plugin without checksums shows warning
255256 Given a WP install
@@ -267,4 +268,4 @@ Feature: Validate checksums for WordPress plugins
267268 """
268269 Warning: Must-use plugin 'custom-mu-plugin.php' appears to be a custom file or loader plugin and cannot be verified.
269270 """
270- And STDOUT should match /Success: Verified 2 of \d plugins \(\d skipped\)\.$ /
271+ And STDOUT should match /Success: Verified \d of \d plugins \(\d skipped\)\./
0 commit comments