@@ -20,15 +20,15 @@ Feature: Manage ability categories registered via the WordPress Abilities API.
2020 'wp_abilities_api_categories_init',
2121 function () {
2222 wp_register_ability_category(
23- 'content',
23+ 'test- content',
2424 array(
2525 'label' => 'Content',
2626 'description' => 'Content management abilities.',
2727 )
2828 );
2929
3030 wp_register_ability_category(
31- 'ai',
31+ 'test- ai',
3232 array(
3333 'label' => 'AI',
3434 'description' => 'AI-powered abilities.',
@@ -40,24 +40,24 @@ Feature: Manage ability categories registered via the WordPress Abilities API.
4040
4141 When I run `wp ability category list`
4242 Then STDOUT should be a table containing rows:
43- | slug | label | description |
44- | content | Content | Content management abilities . |
45- | ai | AI | AI -powered abilities . |
43+ | slug | label | description |
44+ | test - content | Content | Content management abilities . |
45+ | test - ai | AI | AI -powered abilities . |
4646
4747 When I run `wp ability category list --field=slug`
4848 Then STDOUT should contain:
4949 """
50- content
50+ test- content
5151 """
5252 And STDOUT should contain:
5353 """
54- ai
54+ test- ai
5555 """
5656
5757 When I run `wp ability category list --format=json`
5858 Then STDOUT should contain:
5959 """
60- {"slug":"content"
60+ {"slug":"test- content"
6161 """
6262
6363 @require-wp-6.9
@@ -69,7 +69,7 @@ Feature: Manage ability categories registered via the WordPress Abilities API.
6969 'wp_abilities_api_categories_init',
7070 function () {
7171 wp_register_ability_category(
72- 'content',
72+ 'test- content',
7373 array(
7474 'label' => 'Content',
7575 'description' => 'Content management abilities.',
@@ -79,23 +79,23 @@ Feature: Manage ability categories registered via the WordPress Abilities API.
7979 );
8080 """
8181
82- When I run `wp ability category get content`
82+ When I run `wp ability category get test- content`
8383 Then STDOUT should be a table containing rows:
8484 | Field | Value |
85- | slug | content |
85+ | slug | test - content |
8686 | label | Content |
8787 | description | Content management abilities . |
8888
89- When I run `wp ability category get content --field=label`
89+ When I run `wp ability category get test- content --field=label`
9090 Then STDOUT should be:
9191 """
9292 Content
9393 """
9494
95- When I run `wp ability category get content --format=json`
95+ When I run `wp ability category get test- content --format=json`
9696 Then STDOUT should be JSON containing:
9797 """
98- {"slug":"content"}
98+ {"slug":"test- content"}
9999 """
100100
101101 When I try `wp ability category get nonexistent`
@@ -113,7 +113,7 @@ Feature: Manage ability categories registered via the WordPress Abilities API.
113113 'wp_abilities_api_categories_init',
114114 function () {
115115 wp_register_ability_category(
116- 'content',
116+ 'test- content',
117117 array(
118118 'label' => 'Content',
119119 'description' => 'Content management abilities.',
@@ -123,7 +123,7 @@ Feature: Manage ability categories registered via the WordPress Abilities API.
123123 );
124124 """
125125
126- When I run `wp ability category exists content`
126+ When I run `wp ability category exists test- content`
127127 Then the return code should be 0
128128
129129 When I try `wp ability category exists nonexistent`
0 commit comments