Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions features/checksum-core.feature
Original file line number Diff line number Diff line change
Expand Up @@ -233,30 +233,30 @@ Feature: Validate checksums for WordPress install
Given a WP install
And "WordPress" replaced with "PressWord" in the readme.html file
And a wp-includes/some-filename.php file:
"""
sample content of some file
"""
"""
sample content of some file
"""

When I try `wp core verify-checksums --exclude='readme.html,wp-includes/some-filename.php'`
Then STDERR should be empty
And STDOUT should be:
"""
Success: WordPress installation verifies against checksums.
"""
"""
Success: WordPress installation verifies against checksums.
"""
And the return code should be 0

Scenario: Verify core checksums with missing excluded file
Given a WP install
And "WordPress" replaced with "PressWord" in the readme.html file
And a wp-includes/some-filename.php file:
"""
sample content of some file
"""
"""
sample content of some file
"""

When I try `wp core verify-checksums --exclude='wp-includes/some-filename.php'`
Then STDERR should be:
"""
Warning: File doesn't verify against checksum: readme.html
Error: WordPress installation doesn't verify against checksums.
"""
And the return code should be 1
And the return code should be 1
2 changes: 1 addition & 1 deletion features/checksum-plugin.feature
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Feature: Validate checksums for WordPress plugins
unset( $all_plugins['duplicate-post/duplicate-post.php'] );
return $all_plugins;
} );
"""
"""
And "Duplicate Post" replaced with "Different Name" in the wp-content/plugins/duplicate-post/duplicate-post.php file

When I run `wp plugin list --fields=name`
Expand Down