Skip to content

Commit 39fcea4

Browse files
authored
Merge pull request #299 from wp-cli/fix-comment-approval-test
Fix comment approval test
2 parents 96cb181 + ad25f8f commit 39fcea4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

features/comment.feature

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@ Feature: Manage WordPress comments
156156
Given I run `wp comment create --comment_post_ID=1 --comment_approved=0 --porcelain`
157157
And save STDOUT as {COMMENT_ID}
158158

159-
# With site url set.
159+
# With site url set.
160160
When I run `wp comment approve {COMMENT_ID} --url=www.example.com`
161161
Then STDOUT should be:
162162
"""
163163
Success: Approved comment {COMMENT_ID}.
164164
"""
165165

166166
When I try the previous command again
167-
Then STDERR should be:
167+
Then STDERR should contain:
168168
"""
169169
Error: Could not update comment status
170170
"""
@@ -189,7 +189,7 @@ Feature: Manage WordPress comments
189189
0
190190
"""
191191

192-
# Without site url set.
192+
# Without site url set.
193193
When I try `wp comment approve {COMMENT_ID}`
194194
Then STDOUT should be:
195195
"""
@@ -218,7 +218,7 @@ Feature: Manage WordPress comments
218218
And I run `wp comment create --comment_post_ID=1 --porcelain`
219219
And save STDOUT as {COMMENT_ID}
220220

221-
# With site url set.
221+
# With site url set.
222222
When I run `wp comment unapprove {COMMENT_ID} --url=www.example.com`
223223
Then STDOUT should be:
224224
"""
@@ -243,7 +243,7 @@ Feature: Manage WordPress comments
243243
11
244244
"""
245245

246-
# Without site url set.
246+
# Without site url set.
247247
When I try `wp comment unapprove {COMMENT_ID}`
248248
Then STDOUT should be:
249249
"""
@@ -272,7 +272,7 @@ Feature: Manage WordPress comments
272272
And I run `wp comment create --comment_post_ID=1 --porcelain`
273273
And save STDOUT as {COMMENT_ID}
274274

275-
# With site url set.
275+
# With site url set.
276276
When I run `wp comment spam {COMMENT_ID}`
277277
Then STDOUT should be:
278278
"""
@@ -297,7 +297,7 @@ Feature: Manage WordPress comments
297297
0
298298
"""
299299

300-
# Without site url set.
300+
# Without site url set.
301301
When I run `wp comment spam {COMMENT_ID}`
302302
Then STDOUT should be:
303303
"""
@@ -321,7 +321,7 @@ Feature: Manage WordPress comments
321321
And I run `wp comment create --comment_post_ID=1 --porcelain`
322322
And save STDOUT as {COMMENT_ID}
323323

324-
# With site url set.
324+
# With site url set.
325325
When I run `wp comment trash {COMMENT_ID}`
326326
Then STDOUT should be:
327327
"""
@@ -346,7 +346,7 @@ Feature: Manage WordPress comments
346346
0
347347
"""
348348

349-
# Without site url set.
349+
# Without site url set.
350350
When I run `wp comment trash {COMMENT_ID}`
351351
Then STDOUT should be:
352352
"""

0 commit comments

Comments
 (0)