Skip to content

Commit

Permalink
Update Behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy committed Nov 14, 2023
1 parent b4672be commit 5da0075
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ insert_final_newline = false
indent_style = space
indent_size = 2

[*.feature]
insert_final_newline = false
indent_style = space
indent_size = 2

[*.yml]
insert_final_newline = false
indent_style = space
Expand Down
14 changes: 11 additions & 3 deletions tests/behat/features/plugin-check.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,17 @@ Feature: Test that the WP-CLI command works.

When I try the WP-CLI command `plugin check hello.php`
Then STDOUT should contain:
"""
mt_rand() is discouraged.
"""
"""
mt_rand() is discouraged.
"""
And STDOUT should not contain:
"""
no_plugin_readme
"""
And STDOUT should not contain:
"""
trademarked_term
"""
And STDOUT should contain:
"""
All output should be run through an escaping function
Expand Down

0 comments on commit 5da0075

Please sign in to comment.