-
Notifications
You must be signed in to change notification settings - Fork 94
Expand file tree
/
Copy pathcomment-list.feature
More file actions
40 lines (32 loc) · 1.04 KB
/
comment-list.feature
File metadata and controls
40 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Feature: List WordPress comments
@require-wp-4.1
Scenario: Filter comments based on `comment__in` and `comment__not_in`
Given a WP install
When I run `wp comment create --comment_post_ID=1 --porcelain`
Then save STDOUT as {COMMENT_ID}
When I run `wp comment list --comment__in=1,{COMMENT_ID} --format=ids --orderby=comment_ID --order=ASC`
Then STDOUT should be:
"""
1 {COMMENT_ID}
"""
When I run `wp comment list --comment__in=1 --format=ids --orderby=comment_ID --order=ASC`
Then STDOUT should be:
"""
1
"""
When I run `wp comment list --comment__not_in=1,{COMMENT_ID} --format=ids --orderby=comment_ID --order=ASC`
Then STDOUT should be:
"""
"""
When I run `wp comment list --comment__not_in=1 --format=ids --orderby=comment_ID --order=ASC`
Then STDOUT should be:
"""
{COMMENT_ID}
"""
Scenario: Count comments
Given a WP install
When I run `wp comment list --format=count`
Then STDOUT should be:
"""
1
"""