Skip to content

Commit bee03c5

Browse files
authored
Update tests after latest framework changes (#591)
1 parent 18758f6 commit bee03c5

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

features/post-type.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ Feature: Manage WordPress post types
77
When I run `wp post-type list --format=csv`
88
Then STDOUT should be CSV containing:
99
| name | label | description | hierarchical | public | capability_type |
10-
| post | Posts | | | 1 | post |
11-
| page | Pages | | 1 | 1 | page |
10+
| post | Posts | | false | true | post |
11+
| page | Pages | | true | true | page |
1212

1313
@require-wp-5.0
1414
Scenario: Listing post types with count

features/taxonomy.feature

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ Feature: Manage WordPress taxonomies
88
When I run `wp taxonomy list --format=csv`
99
Then STDOUT should be CSV containing:
1010
| name | label | description | object_type | show_tagcloud | hierarchical | public |
11-
| category | Categories | | post | 1 | 1 | 1 |
12-
| post_tag | Tags | | post | 1 | | 1 |
11+
| category | Categories | | post | true | true | true |
12+
| post_tag | Tags | | post | true | false | true |
1313

1414
When I run `wp taxonomy list --object_type=nav_menu_item --format=csv`
1515
Then STDOUT should be CSV containing:
1616
| name | label | description | object_type | show_tagcloud | hierarchical | public |
17-
| nav_menu | Navigation Menus | | nav_menu_item | | | |
17+
| nav_menu | Navigation Menus | | nav_menu_item | false | false | false |
1818

1919
@require-wp-5.0
2020
Scenario: Listing taxonomies with counts
@@ -75,17 +75,17 @@ Feature: Manage WordPress taxonomies
7575
When I run `wp taxonomy list --object_type=post --strict`
7676
Then STDOUT should be a table containing rows:
7777
| name | label | description | object_type | show_tagcloud | hierarchical | public |
78-
| category | Categories | | post | 1 | 1 | 1 |
79-
| post_tag | Tags | | post | 1 | | 1 |
80-
| post_format | Formats | | post | | | 1 |
78+
| category | Categories | | post | true | true | true |
79+
| post_tag | Tags | | post | true | false | true |
80+
| post_format | Formats | | post | false | false | true |
8181

8282
When I run `wp taxonomy list --object_type=post --no-strict`
8383
Then STDOUT should be a table containing rows:
8484
| name | label | description | object_type | show_tagcloud | hierarchical | public |
85-
| category | Categories | | post | 1 | 1 | 1 |
86-
| post_tag | Tags | | post | 1 | | 1 |
87-
| post_format | Formats | | post | | | 1 |
88-
| genres | Genres | | post, page | 1 | 1 | 1 |
85+
| category | Categories | | post | true | true | true |
86+
| post_tag | Tags | | post | true | false | true |
87+
| post_format | Formats | | post | false | false | true |
88+
| genres | Genres | | post, page | true | true | true |
8989

9090
@less-than-wp-5.1
9191
Scenario: Listing taxonomies with strict/no-strict mode (for WP < 5.1)
@@ -115,14 +115,14 @@ Feature: Manage WordPress taxonomies
115115
When I run `wp taxonomy list --object_type=post --strict`
116116
Then STDOUT should be a table containing rows:
117117
| name | label | description | object_type | show_tagcloud | hierarchical | public |
118-
| category | Categories | | post | 1 | 1 | 1 |
119-
| post_tag | Tags | | post | 1 | | 1 |
120-
| post_format | Format | | post | | | 1 |
118+
| category | Categories | | post | true | true | true |
119+
| post_tag | Tags | | post | true | false | true |
120+
| post_format | Format | | post | false | false | true |
121121

122122
When I run `wp taxonomy list --object_type=post --no-strict`
123123
Then STDOUT should be a table containing rows:
124124
| name | label | description | object_type | show_tagcloud | hierarchical | public |
125-
| category | Categories | | post | 1 | 1 | 1 |
126-
| post_tag | Tags | | post | 1 | | 1 |
127-
| post_format | Format | | post | | | 1 |
128-
| genres | Genres | | post, page | 1 | 1 | 1 |
125+
| category | Categories | | post | true | true | true |
126+
| post_tag | Tags | | post | true | false | true |
127+
| post_format | Format | | post | false | false | true |
128+
| genres | Genres | | post, page | true | true | true |

0 commit comments

Comments
 (0)