Skip to content

Commit 669caae

Browse files
committed
test: Delete comments with explicit defer-term-counting flag
1 parent a7849ca commit 669caae

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

features/comment.feature

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,27 @@ Feature: Manage WordPress comments
583583
Success: Deleted 3 comments.
584584
"""
585585

586+
Scenario: Delete comments with explicit defer-term-counting flag
587+
Given a WP install
588+
And I run `wp comment create --comment_post_ID=1 --comment_content='Comment 1' --porcelain`
589+
And save STDOUT as {COMMENT_ID_1}
590+
And I run `wp comment create --comment_post_ID=1 --comment_content='Comment 2' --porcelain`
591+
And save STDOUT as {COMMENT_ID_2}
592+
593+
When I run `wp comment delete {COMMENT_ID_1} {COMMENT_ID_2} --defer-term-counting`
594+
Then STDOUT should contain:
595+
"""
596+
Success: Trashed comment {COMMENT_ID_1}.
597+
"""
598+
And STDOUT should contain:
599+
"""
600+
Success: Trashed comment {COMMENT_ID_2}.
601+
"""
602+
And STDOUT should contain:
603+
"""
604+
Success: Deleted 2 comments.
605+
"""
606+
586607
Scenario: Error when no comment IDs and no --all flag provided
587608
Given a WP install
588609

0 commit comments

Comments
 (0)