Skip to content

Commit c3ecd21

Browse files
Update feature test as per new changes
1 parent ef8d1ec commit c3ecd21

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

features/post-meta.feature

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -59,45 +59,45 @@ Feature: Manage post custom fields
5959

6060
When I run `wp post meta list 1`
6161
Then STDOUT should be a table containing rows:
62-
| post_id | meta_key | meta_value |
63-
| 1 | apple | banana |
64-
| 1 | apple | banana |
65-
| 1 | banana | ["apple","apple"] |
62+
| post_id | meta_key | meta_value |
63+
| 1 | apple | banana |
64+
| 1 | apple | banana |
65+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
6666

6767
When I run `wp post meta list 1 --orderby=id --order=desc`
6868
Then STDOUT should be a table containing rows:
69-
| post_id | meta_key | meta_value |
70-
| 1 | banana | ["apple","apple"] |
71-
| 1 | apple | banana |
72-
| 1 | apple | banana |
69+
| post_id | meta_key | meta_value |
70+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
71+
| 1 | apple | banana |
72+
| 1 | apple | banana |
7373

7474
When I run `wp post meta list 1 --orderby=meta_key --order=asc`
7575
Then STDOUT should be a table containing rows:
76-
| post_id | meta_key | meta_value |
77-
| 1 | apple | banana |
78-
| 1 | apple | banana |
79-
| 1 | banana | ["apple","apple"] |
76+
| post_id | meta_key | meta_value |
77+
| 1 | apple | banana |
78+
| 1 | apple | banana |
79+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
8080

8181
When I run `wp post meta list 1 --orderby=meta_key --order=desc`
8282
Then STDOUT should be a table containing rows:
83-
| post_id | meta_key | meta_value |
84-
| 1 | banana | ["apple","apple"] |
85-
| 1 | apple | banana |
86-
| 1 | apple | banana |
83+
| post_id | meta_key | meta_value |
84+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
85+
| 1 | apple | banana |
86+
| 1 | apple | banana |
8787

8888
When I run `wp post meta list 1 --orderby=meta_value --order=asc`
8989
Then STDOUT should be a table containing rows:
90-
| post_id | meta_key | meta_value |
91-
| 1 | apple | banana |
92-
| 1 | apple | banana |
93-
| 1 | banana | ["apple","apple"] |
90+
| post_id | meta_key | meta_value |
91+
| 1 | apple | banana |
92+
| 1 | apple | banana |
93+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
9494

9595
When I run `wp post meta list 1 --orderby=meta_value --order=desc`
9696
Then STDOUT should be a table containing rows:
97-
| post_id | meta_key | meta_value |
98-
| 1 | banana | ["apple","apple"] |
99-
| 1 | apple | banana |
100-
| 1 | apple | banana |
97+
| post_id | meta_key | meta_value |
98+
| 1 | banana | a:2:{i:0;s:5:"apple";i:1;s:5:"apple";} |
99+
| 1 | apple | banana |
100+
| 1 | apple | banana |
101101

102102
Scenario: Delete all post meta
103103
Given a WP install

0 commit comments

Comments
 (0)