Skip to content

Commit fb2d6be

Browse files
committed
test: Separates STDOUT and STDERR
1 parent fc0e2a2 commit fb2d6be

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

features/comment.feature

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -591,14 +591,20 @@ Feature: Manage WordPress comments
591591
And save STDOUT as {COMMENT_ID_2}
592592

593593
When I run `wp comment delete {COMMENT_ID_1} {COMMENT_ID_2} 99999`
594-
Then STDOUT should be:
594+
Then STDOUT should contain:
595595
"""
596596
Success: Trashed comment {COMMENT_ID_1}.
597+
"""
598+
And STDOUT should contain:
599+
"""
597600
Success: Trashed comment {COMMENT_ID_2}.
598601
"""
599-
And STDERR should be:
602+
And STDERR should contain:
600603
"""
601604
Warning: Failed deleting comment 99999.
605+
"""
606+
And STDERR should contain:
607+
"""
602608
Error: Failed deleting 1 comments.
603609
"""
604610
And the return code should be 1

0 commit comments

Comments
 (0)