Skip to content

Commit 6316706

Browse files
Update feature test for comment meta as per new changes
1 parent 34b866b commit 6316706

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

features/comment-meta.feature

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,21 @@ Feature: Manage comment custom fields
5656
"""
5757
-- hi
5858
"""
59+
60+
Scenario: List comment meta
61+
Given a WP install
62+
63+
When I run `wp comment meta add 1 apple banana`
64+
And I run `wp comment meta add 1 apple banana`
65+
Then STDOUT should not be empty
66+
67+
When I run `wp comment meta set 1 banana '["apple", "apple"]' --format=json`
68+
Then STDOUT should not be empty
69+
70+
When I run `wp comment meta list 1`
71+
Then STDOUT should be a table containing rows:
72+
| comment_id | meta_key | meta_value |
73+
| 1 | apple | banana |
74+
| 1 | apple | banana |
75+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
76+

0 commit comments

Comments
 (0)