Skip to content

Commit

Permalink
Update behat tests for plugin check
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Jan 30, 2024
1 parent f6b096e commit 838583f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/behat/features/plugin-check.feature
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,19 @@ Feature: Test that the WP-CLI command works.
Then STDOUT should contain:
"""
line,column,type,code,message
"""
And STDOUT should contain:
"""
49,31,ERROR,WordPress.WP.AlternativeFunctions.rand_mt_rand,"mt_rand() is discouraged. Use the far less predictable wp_rand() instead."
"""

When I run the WP-CLI command `plugin check hello.php --format=csv --fields=line,column,code`
Then STDOUT should contain:
"""
line,column,code
"""
And STDOUT should contain:
"""
49,31,WordPress.WP.AlternativeFunctions.rand_mt_rand
"""

Expand Down

0 comments on commit 838583f

Please sign in to comment.