File tree Expand file tree Collapse file tree 2 files changed +19
-0
lines changed
Expand file tree Collapse file tree 2 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -280,3 +280,21 @@ Feature: Manage WordPress terms
280280 """
281281 Success: Term updated.
282282 """
283+
284+ Scenario : Term list includes term_group as optional field
285+ When I run `wp term create category 'Group Test' --slug=group-test --description='Test term_group field' `
286+ Then STDOUT should not be empty
287+
288+ When I run `wp term list category --format=csv --fields=name,term_group`
289+ Then STDOUT should contain:
290+ """
291+ term_group
292+ """
293+
294+ When I run `wp term list category --format=json --fields=term_id,name,term_group`
295+ Then STDOUT should be JSON containing:
296+ """
297+ [{
298+ "term_group":0
299+ }]
300+ """
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ class Term_Command extends WP_CLI_Command {
9393 *
9494 * These fields are optionally available:
9595 *
96+ * * term_group
9697 * * url
9798 *
9899 * ## EXAMPLES
You can’t perform that action at this time.
0 commit comments