Skip to content

Commit dc03bc8

Browse files
Fix these assertions
1 parent c9bab49 commit dc03bc8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

features/checksum-core.feature

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ Feature: Validate checksums for WordPress install
2727
When I run `rm readme.html`
2828
Then STDERR should be empty
2929

30-
When I run `wp core verify-checksums`
31-
Then STDOUT should be:
30+
When I try `wp core verify-checksums`
31+
Then STDERR should be:
3232
"""
33-
Success: WordPress installation verifies against checksums.
33+
Warning: File doesn't exist: readme.html
34+
Error: WordPress installation doesn't verify against checksums.
3435
"""
36+
And the return code should be 1
3537

3638
Scenario: Core checksums don't verify because wp-cli.yml is present
3739
Given a WP install

0 commit comments

Comments
 (0)