Skip to content

Commit b5772b3

Browse files
Tests: Add the Trac ticket number to the term ability tests.
1 parent a481872 commit b5772b3

5 files changed

Lines changed: 80 additions & 80 deletions

File tree

‎tests/phpunit/tests/abilities-api/wpRegisterCoreTermCreateAbility.php‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Tests_Abilities_API_WpRegisterCoreTermCreateAbility extends WP_Abilities_T
4444
}';
4545

4646
/**
47-
* @ticket 99999
47+
* @ticket 66743
4848
* @since 7.3.0
4949
*/
5050
public function test_is_registered(): void {
@@ -59,7 +59,7 @@ public function test_is_registered(): void {
5959
}
6060

6161
/**
62-
* @ticket 99999
62+
* @ticket 66743
6363
* @since 7.3.0
6464
*/
6565
public function test_schemas_match_the_shape(): void {
@@ -74,7 +74,7 @@ public function test_schemas_match_the_shape(): void {
7474
/**
7575
* The first and third examples of the shape: a child category, created twice.
7676
*
77-
* @ticket 99999
77+
* @ticket 66743
7878
* @since 7.3.0
7979
*/
8080
public function test_creates_a_child_category_and_refuses_it_again(): void {
@@ -120,7 +120,7 @@ public function test_creates_a_child_category_and_refuses_it_again(): void {
120120
/**
121121
* The second example of the shape: a tag with the default fields.
122122
*
123-
* @ticket 99999
123+
* @ticket 66743
124124
* @since 7.3.0
125125
*/
126126
public function test_creates_a_tag_with_the_default_fields(): void {
@@ -142,7 +142,7 @@ public function test_creates_a_tag_with_the_default_fields(): void {
142142
}
143143

144144
/**
145-
* @ticket 99999
145+
* @ticket 66743
146146
* @since 7.3.0
147147
*/
148148
public function test_refuses_an_existing_tag_name(): void {
@@ -192,7 +192,7 @@ public static function data_create_permissions(): array {
192192
* Creating a category requires managing categories, while assigning tags is enough to
193193
* create a tag.
194194
*
195-
* @ticket 99999
195+
* @ticket 66743
196196
* @dataProvider data_create_permissions
197197
* @since 7.3.0
198198
*
@@ -224,7 +224,7 @@ public function test_requires_the_capability_to_create_terms( string $role, stri
224224
}
225225

226226
/**
227-
* @ticket 99999
227+
* @ticket 66743
228228
* @since 7.3.0
229229
*/
230230
public function test_refuses_a_logged_out_user(): void {
@@ -246,7 +246,7 @@ public function test_refuses_a_logged_out_user(): void {
246246
}
247247

248248
/**
249-
* @ticket 99999
249+
* @ticket 66743
250250
* @since 7.3.0
251251
*/
252252
public function test_checks_the_capability_again_after_the_permission_check(): void {
@@ -269,7 +269,7 @@ public function test_checks_the_capability_again_after_the_permission_check(): v
269269
}
270270

271271
/**
272-
* @ticket 99999
272+
* @ticket 66743
273273
* @since 7.3.0
274274
*/
275275
public function test_refuses_a_taxonomy_that_is_not_exposed(): void {
@@ -294,7 +294,7 @@ public function test_refuses_a_taxonomy_that_is_not_exposed(): void {
294294
}
295295

296296
/**
297-
* @ticket 99999
297+
* @ticket 66743
298298
* @since 7.3.0
299299
*/
300300
public function test_saves_the_name_as_plain_text_and_returns_it_as_stored(): void {
@@ -370,7 +370,7 @@ public static function data_refused_attributes(): array {
370370
}
371371

372372
/**
373-
* @ticket 99999
373+
* @ticket 66743
374374
* @dataProvider data_refused_attributes
375375
* @since 7.3.0
376376
*
@@ -393,7 +393,7 @@ public function test_refuses_an_attribute_that_cannot_be_saved( array $data, str
393393
}
394394

395395
/**
396-
* @ticket 99999
396+
* @ticket 66743
397397
* @since 7.3.0
398398
*/
399399
public function test_saves_every_attribute(): void {
@@ -425,7 +425,7 @@ public function test_saves_every_attribute(): void {
425425
/**
426426
* A slug that is already in use is made unique, as for any new term.
427427
*
428-
* @ticket 99999
428+
* @ticket 66743
429429
* @since 7.3.0
430430
*/
431431
public function test_makes_a_slug_in_use_unique(): void {
@@ -449,7 +449,7 @@ public function test_makes_a_slug_in_use_unique(): void {
449449
}
450450

451451
/**
452-
* @ticket 99999
452+
* @ticket 66743
453453
* @since 7.3.0
454454
*/
455455
public function test_saves_slashes_as_given(): void {
@@ -472,7 +472,7 @@ public function test_saves_slashes_as_given(): void {
472472
}
473473

474474
/**
475-
* @ticket 99999
475+
* @ticket 66743
476476
* @since 7.3.0
477477
*/
478478
public function test_returns_the_status_500_for_another_save_error(): void {
@@ -500,7 +500,7 @@ static function () {
500500
}
501501

502502
/**
503-
* @ticket 99999
503+
* @ticket 66743
504504
* @since 7.3.0
505505
*/
506506
public function test_reports_a_term_that_cannot_be_read_back(): void {

‎tests/phpunit/tests/abilities-api/wpRegisterCoreTermDeleteAbility.php‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Tests_Abilities_API_WpRegisterCoreTermDeleteAbility extends WP_Abilities_T
4646
}';
4747

4848
/**
49-
* @ticket 99999
49+
* @ticket 66743
5050
* @since 7.3.0
5151
*/
5252
public function test_is_registered(): void {
@@ -61,7 +61,7 @@ public function test_is_registered(): void {
6161
}
6262

6363
/**
64-
* @ticket 99999
64+
* @ticket 66743
6565
* @since 7.3.0
6666
*/
6767
public function test_schemas_match_the_shape(): void {
@@ -76,7 +76,7 @@ public function test_schemas_match_the_shape(): void {
7676
/**
7777
* The first example of the shape: deleting a tag.
7878
*
79-
* @ticket 99999
79+
* @ticket 66743
8080
* @since 7.3.0
8181
*/
8282
public function test_deletes_a_tag(): void {
@@ -103,7 +103,7 @@ public function test_deletes_a_tag(): void {
103103
/**
104104
* The second example of the shape: the default category is refused.
105105
*
106-
* @ticket 99999
106+
* @ticket 66743
107107
* @since 7.3.0
108108
*/
109109
public function test_refuses_the_default_category(): void {
@@ -125,7 +125,7 @@ public function test_refuses_the_default_category(): void {
125125
}
126126

127127
/**
128-
* @ticket 99999
128+
* @ticket 66743
129129
* @since 7.3.0
130130
*/
131131
public function test_refuses_the_default_term_of_a_custom_taxonomy(): void {
@@ -158,7 +158,7 @@ public function test_refuses_the_default_term_of_a_custom_taxonomy(): void {
158158
* A user who cannot delete categories is refused before learning that a category is the
159159
* default one.
160160
*
161-
* @ticket 99999
161+
* @ticket 66743
162162
* @since 7.3.0
163163
*/
164164
public function test_refuses_the_default_category_to_a_user_who_cannot_delete_categories(): void {
@@ -178,7 +178,7 @@ public function test_refuses_the_default_category_to_a_user_who_cannot_delete_ca
178178
}
179179

180180
/**
181-
* @ticket 99999
181+
* @ticket 66743
182182
* @since 7.3.0
183183
*/
184184
public function test_moves_child_terms_up_and_gives_posts_the_default_category(): void {
@@ -235,7 +235,7 @@ public static function data_delete_permissions(): array {
235235
}
236236

237237
/**
238-
* @ticket 99999
238+
* @ticket 66743
239239
* @dataProvider data_delete_permissions
240240
* @since 7.3.0
241241
*
@@ -269,7 +269,7 @@ public function test_requires_the_capability_to_delete_the_term( string $role, s
269269
}
270270

271271
/**
272-
* @ticket 99999
272+
* @ticket 66743
273273
* @since 7.3.0
274274
*/
275275
public function test_refuses_a_logged_out_user(): void {
@@ -293,7 +293,7 @@ public function test_refuses_a_logged_out_user(): void {
293293
}
294294

295295
/**
296-
* @ticket 99999
296+
* @ticket 66743
297297
* @since 7.3.0
298298
*/
299299
public function test_checks_the_capability_again_after_the_permission_check(): void {
@@ -318,7 +318,7 @@ public function test_checks_the_capability_again_after_the_permission_check(): v
318318
}
319319

320320
/**
321-
* @ticket 99999
321+
* @ticket 66743
322322
* @since 7.3.0
323323
*/
324324
public function test_does_not_find_a_missing_term_or_a_term_of_another_taxonomy(): void {
@@ -351,7 +351,7 @@ public function test_does_not_find_a_missing_term_or_a_term_of_another_taxonomy(
351351
}
352352

353353
/**
354-
* @ticket 99999
354+
* @ticket 66743
355355
* @since 7.3.0
356356
*/
357357
public function test_refuses_an_invalid_term_id(): void {

‎tests/phpunit/tests/abilities-api/wpRegisterCoreTermUpdateAbility.php‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private function update_input( array $data, array $fields = array() ): array {
100100
}
101101

102102
/**
103-
* @ticket 99999
103+
* @ticket 66743
104104
* @since 7.3.0
105105
*/
106106
public function test_is_registered(): void {
@@ -115,7 +115,7 @@ public function test_is_registered(): void {
115115
}
116116

117117
/**
118-
* @ticket 99999
118+
* @ticket 66743
119119
* @since 7.3.0
120120
*/
121121
public function test_schemas_match_the_shape(): void {
@@ -135,7 +135,7 @@ public function test_schemas_match_the_shape(): void {
135135
/**
136136
* The first example of the shape: a description.
137137
*
138-
* @ticket 99999
138+
* @ticket 66743
139139
* @since 7.3.0
140140
*/
141141
public function test_updates_the_description(): void {
@@ -159,7 +159,7 @@ public function test_updates_the_description(): void {
159159
* The second example of the shape: moving the category to the top level, which changes
160160
* its link.
161161
*
162-
* @ticket 99999
162+
* @ticket 66743
163163
* @since 7.3.0
164164
*/
165165
public function test_moves_the_category_to_the_top_level(): void {
@@ -178,7 +178,7 @@ public function test_moves_the_category_to_the_top_level(): void {
178178
/**
179179
* The third example of the shape: a term that is not in the taxonomy named in `where`.
180180
*
181-
* @ticket 99999
181+
* @ticket 66743
182182
* @since 7.3.0
183183
*/
184184
public function test_does_not_find_a_term_of_another_taxonomy(): void {
@@ -201,7 +201,7 @@ public function test_does_not_find_a_term_of_another_taxonomy(): void {
201201
}
202202

203203
/**
204-
* @ticket 99999
204+
* @ticket 66743
205205
* @since 7.3.0
206206
*/
207207
public function test_does_not_find_a_missing_term(): void {
@@ -241,7 +241,7 @@ public static function data_edit_permissions(): array {
241241
}
242242

243243
/**
244-
* @ticket 99999
244+
* @ticket 66743
245245
* @dataProvider data_edit_permissions
246246
* @since 7.3.0
247247
*
@@ -276,7 +276,7 @@ public function test_requires_the_capability_to_edit_the_term( string $role, str
276276
}
277277

278278
/**
279-
* @ticket 99999
279+
* @ticket 66743
280280
* @since 7.3.0
281281
*/
282282
public function test_refuses_a_logged_out_user(): void {
@@ -293,7 +293,7 @@ public function test_refuses_a_logged_out_user(): void {
293293
}
294294

295295
/**
296-
* @ticket 99999
296+
* @ticket 66743
297297
* @since 7.3.0
298298
*/
299299
public function test_checks_the_capability_again_after_the_permission_check(): void {
@@ -309,7 +309,7 @@ public function test_checks_the_capability_again_after_the_permission_check(): v
309309
}
310310

311311
/**
312-
* @ticket 99999
312+
* @ticket 66743
313313
* @since 7.3.0
314314
*/
315315
public function test_keeps_the_attributes_that_are_left_out(): void {
@@ -323,7 +323,7 @@ public function test_keeps_the_attributes_that_are_left_out(): void {
323323
}
324324

325325
/**
326-
* @ticket 99999
326+
* @ticket 66743
327327
* @since 7.3.0
328328
*/
329329
public function test_refuses_empty_data(): void {
@@ -393,7 +393,7 @@ public static function data_refused_attributes(): array {
393393
}
394394

395395
/**
396-
* @ticket 99999
396+
* @ticket 66743
397397
* @dataProvider data_refused_attributes
398398
* @since 7.3.0
399399
*
@@ -429,7 +429,7 @@ public function test_refuses_an_attribute_that_cannot_be_saved( string $taxonomy
429429
}
430430

431431
/**
432-
* @ticket 99999
432+
* @ticket 66743
433433
* @since 7.3.0
434434
*/
435435
public function test_refuses_a_slug_in_use(): void {
@@ -443,7 +443,7 @@ public function test_refuses_a_slug_in_use(): void {
443443
}
444444

445445
/**
446-
* @ticket 99999
446+
* @ticket 66743
447447
* @since 7.3.0
448448
*/
449449
public function test_moves_the_category_under_another_parent(): void {
@@ -466,7 +466,7 @@ public function test_moves_the_category_under_another_parent(): void {
466466
/**
467467
* A term shared between taxonomies is split when it is updated, which gives it a new ID.
468468
*
469-
* @ticket 99999
469+
* @ticket 66743
470470
* @since 7.3.0
471471
*/
472472
public function test_returns_the_new_id_of_a_split_shared_term(): void {
@@ -505,7 +505,7 @@ public function test_returns_the_new_id_of_a_split_shared_term(): void {
505505
}
506506

507507
/**
508-
* @ticket 99999
508+
* @ticket 66743
509509
* @since 7.3.0
510510
*/
511511
public function test_saves_slashes_as_given(): void {

0 commit comments

Comments
 (0)