You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tests/behat/features/plugin-check.feature
+30
Original file line number
Diff line number
Diff line change
@@ -119,6 +119,36 @@ Feature: Test that the WP-CLI command works.
119
119
WordPress.Security.EscapeOutput.OutputNotEscaped
120
120
"""
121
121
122
+
When I run the WP-CLI command `plugin check foo-single.php --ignore-codes=WordPress.WP.AlternativeFunctions.rand_mt_rand`
123
+
Then STDOUT should not contain:
124
+
"""
125
+
WordPress.WP.AlternativeFunctions.rand_mt_rand
126
+
"""
127
+
And STDOUT should contain:
128
+
"""
129
+
WordPress.Security.EscapeOutput.OutputNotEscaped
130
+
"""
131
+
132
+
When I run the WP-CLI command `plugin check foo-single.php --ignore-codes=WordPress.Security.EscapeOutput.OutputNotEscaped`
133
+
Then STDOUT should not contain:
134
+
"""
135
+
WordPress.Security.EscapeOutput.OutputNotEscaped
136
+
"""
137
+
And STDOUT should contain:
138
+
"""
139
+
WordPress.WP.AlternativeFunctions.rand_mt_rand
140
+
"""
141
+
142
+
When I run the WP-CLI command `plugin check foo-single.php --ignore-codes="WordPress.WP.AlternativeFunctions.rand_mt_rand,WordPress.Security.EscapeOutput.OutputNotEscaped"`
143
+
Then STDOUT should not contain:
144
+
"""
145
+
WordPress.Security.EscapeOutput.OutputNotEscaped
146
+
"""
147
+
And STDOUT should not contain:
148
+
"""
149
+
WordPress.WP.AlternativeFunctions.rand_mt_rand
150
+
"""
151
+
122
152
Scenario: Check plugin with special chars in plugin name
123
153
Given a WP install with the Plugin Check plugin
124
154
And a wp-content/plugins/johns-post-counter/johns-post-counter.php file:
0 commit comments