Skip to content

Commit 124efd7

Browse files
committed
Add comment meta test, correct post meta list test
1 parent 3856d63 commit 124efd7

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

features/comment-meta.feature

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,10 @@ Feature: Manage comment custom fields
7474
| 1 | apple | banana |
7575
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
7676

77+
When I run `wp comment meta list 1 --unserialize`
78+
Then STDOUT should be a table containing rows:
79+
| comment_id | meta_key | meta_value |
80+
| 1 | apple | banana |
81+
| 1 | apple | banana |
82+
| 1 | banana | ["apple","apple"] |
83+

features/post-meta.feature

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ Feature: Manage post custom fields
6666

6767
When I run `wp post meta list 1 --unserialize`
6868
Then STDOUT should be a table containing rows:
69-
| post_id | meta_key | meta_value |
70-
| 1 | apple | banana |
71-
| 1 | apple | banana |
72-
| 1 | banana | ["apple","apple"] |
69+
| post_id | meta_key | meta_value |
70+
| 1 | apple | banana |
71+
| 1 | apple | banana |
72+
| 1 | banana | ["apple","apple"] |
7373

7474
When I run `wp post meta list 1 --orderby=id --order=desc`
7575
Then STDOUT should be a table containing rows:

0 commit comments

Comments
 (0)