File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments