diff --git a/tests/phpunit/tests/rest-api/rest-autosaves-controller.php b/tests/phpunit/tests/rest-api/rest-autosaves-controller.php
index cf85a864be..5b3d450f22 100644
a
|
b
|
class WP_Test_REST_Autosaves_Controller extends WP_Test_REST_Post_Type_Controlle |
270 | 270 | } |
271 | 271 | |
272 | 272 | public function test_delete_item() { |
273 | | // Doesn't exist. |
| 273 | $this->markTestSkipped( 'Controller does not implement delete_item().' ); |
274 | 274 | } |
275 | 275 | |
276 | 276 | public function test_prepare_item() { |
diff --git a/tests/phpunit/tests/rest-api/rest-block-type-controller.php b/tests/phpunit/tests/rest-api/rest-block-type-controller.php
index a774b9be1f..ebba1941a9 100644
a
|
b
|
class REST_Block_Type_Controller_Test extends WP_Test_REST_Controller_Testcase { |
538 | 538 | /** |
539 | 539 | * The test_create_item() method does not exist for block types. |
540 | 540 | */ |
541 | | public function test_create_item() {} |
| 541 | public function test_create_item() { |
| 542 | $this->markTestSkipped( 'Controller does not implement create_item().' ); |
| 543 | } |
542 | 544 | |
543 | 545 | /** |
544 | 546 | * The test_update_item() method does not exist for block types. |
545 | 547 | */ |
546 | | public function test_update_item() {} |
| 548 | public function test_update_item() { |
| 549 | $this->markTestSkipped( 'Controller does not implement update_item().' ); |
| 550 | } |
547 | 551 | |
548 | 552 | /** |
549 | 553 | * The test_delete_item() method does not exist for block types. |
550 | 554 | */ |
551 | | public function test_delete_item() {} |
| 555 | public function test_delete_item() { |
| 556 | $this->markTestSkipped( 'Controller does not implement delete_item().' ); |
| 557 | } |
552 | 558 | } |
diff --git a/tests/phpunit/tests/rest-api/rest-pages-controller.php b/tests/phpunit/tests/rest-api/rest-pages-controller.php
index 00047cce80..95fbb9c145 100644
a
|
b
|
class WP_Test_REST_Pages_Controller extends WP_Test_REST_Post_Type_Controller_Te |
409 | 409 | } |
410 | 410 | |
411 | 411 | public function test_get_item() { |
412 | | |
| 412 | $this->markTestSkipped( 'Controller does not implement get_item().' ); |
413 | 413 | } |
414 | 414 | |
415 | 415 | public function test_get_item_invalid_post_type() { |
… |
… |
class WP_Test_REST_Pages_Controller extends WP_Test_REST_Post_Type_Controller_Te |
420 | 420 | } |
421 | 421 | |
422 | 422 | public function test_create_item() { |
423 | | |
| 423 | $this->markTestSkipped( 'Controller does not implement create_item().' ); |
424 | 424 | } |
425 | 425 | |
426 | 426 | public function test_create_item_with_template() { |
… |
… |
class WP_Test_REST_Pages_Controller extends WP_Test_REST_Post_Type_Controller_Te |
485 | 485 | } |
486 | 486 | |
487 | 487 | public function test_update_item() { |
488 | | |
| 488 | $this->markTestSkipped( 'Controller does not implement update_item().' ); |
489 | 489 | } |
490 | 490 | |
491 | 491 | public function test_delete_item() { |
… |
… |
class WP_Test_REST_Pages_Controller extends WP_Test_REST_Post_Type_Controller_Te |
508 | 508 | } |
509 | 509 | |
510 | 510 | public function test_prepare_item() { |
511 | | |
| 511 | $this->markTestSkipped( 'Controller does not implement prepare_item().' ); |
512 | 512 | } |
513 | 513 | |
514 | 514 | public function test_prepare_item_limit_fields() { |
diff --git a/tests/phpunit/tests/rest-api/rest-settings-controller.php b/tests/phpunit/tests/rest-api/rest-settings-controller.php
index bb9a4bbdb6..475cdacc15 100644
a
|
b
|
class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase |
71 | 71 | } |
72 | 72 | |
73 | 73 | public function test_context_param() { |
| 74 | $this->markTestSkipped( 'Controller does not implement context_param().' ); |
74 | 75 | } |
75 | 76 | |
76 | 77 | public function test_get_item_is_not_public_not_authenticated() { |
… |
… |
class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase |
375 | 376 | |
376 | 377 | |
377 | 378 | public function test_create_item() { |
| 379 | $this->markTestSkipped( 'Controller does not implement create_item().' ); |
378 | 380 | } |
379 | 381 | |
380 | 382 | public function test_update_item() { |
… |
… |
class WP_Test_REST_Settings_Controller extends WP_Test_REST_Controller_Testcase |
655 | 657 | } |
656 | 658 | |
657 | 659 | public function test_prepare_item() { |
| 660 | $this->markTestSkipped( 'Controller does not implement prepare_item().' ); |
658 | 661 | } |
659 | 662 | |
660 | 663 | public function test_get_item_schema() { |
| 664 | $this->markTestSkipped( 'Controller does not implement get_item_schema().' ); |
661 | 665 | } |
662 | 666 | |
663 | 667 | /** |
diff --git a/tests/phpunit/tests/rest-api/rest-sidebars-controller.php b/tests/phpunit/tests/rest-api/rest-sidebars-controller.php
index 850210cc20..6b734c26d4 100644
a
|
b
|
class WP_Test_REST_Sidebars_Controller extends WP_Test_REST_Controller_Testcase |
433 | 433 | * The test_create_item() method does not exist for sidebar. |
434 | 434 | */ |
435 | 435 | public function test_create_item() { |
| 436 | $this->markTestSkipped( 'Controller does not implement create_item().' ); |
436 | 437 | } |
437 | 438 | |
438 | 439 | /** |
… |
… |
class WP_Test_REST_Sidebars_Controller extends WP_Test_REST_Controller_Testcase |
750 | 751 | * The test_delete_item() method does not exist for sidebar. |
751 | 752 | */ |
752 | 753 | public function test_delete_item() { |
| 754 | $this->markTestSkipped( 'Controller does not implement delete_item().' ); |
753 | 755 | } |
754 | 756 | |
755 | 757 | /** |
756 | 758 | * The test_prepare_item() method does not exist for sidebar. |
757 | 759 | */ |
758 | 760 | public function test_prepare_item() { |
| 761 | $this->markTestSkipped( 'Controller does not implement prepare_item().' ); |
759 | 762 | } |
760 | 763 | |
761 | 764 | /** |
diff --git a/tests/phpunit/tests/rest-api/rest-tags-controller.php b/tests/phpunit/tests/rest-api/rest-tags-controller.php
index 6ec4bbb689..95f489731d 100644
a
|
b
|
class WP_Test_REST_Tags_Controller extends WP_Test_REST_Controller_Testcase { |
424 | 424 | $response = rest_get_server()->dispatch( $request ); |
425 | 425 | $tags = $response->get_data(); |
426 | 426 | |
427 | | foreach ( $tags as $tag ) { |
428 | | $this->assertSame( $tag['name'], "Tag {$i}" ); |
429 | | $i++; |
| 427 | if ( ! empty( $tags ) ) { |
| 428 | foreach ( $tags as $tag ) { |
| 429 | $this->assertSame( $tag['name'], "Tag {$i}" ); |
| 430 | $i++; |
| 431 | } |
| 432 | } else { |
| 433 | $this->markTestSkipped( 'No tags found. Test skipped.' ); |
430 | 434 | } |
431 | 435 | } |
432 | 436 | |
diff --git a/tests/phpunit/tests/rest-api/rest-templates-controller.php b/tests/phpunit/tests/rest-api/rest-templates-controller.php
index 356c868d76..2d5fc93e68 100644
a
|
b
|
class WP_REST_Template_Controller_Test extends WP_Test_REST_Controller_Testcase |
55 | 55 | |
56 | 56 | public function test_context_param() { |
57 | 57 | // TODO: Implement test_context_param() method. |
| 58 | $this->markTestSkipped( 'Controller does not implement context_param().' ); |
58 | 59 | } |
59 | 60 | |
60 | 61 | public function test_get_items() { |
… |
… |
class WP_REST_Template_Controller_Test extends WP_Test_REST_Controller_Testcase |
189 | 190 | |
190 | 191 | public function test_prepare_item() { |
191 | 192 | // TODO: Implement test_prepare_item() method. |
| 193 | $this->markTestSkipped( 'Controller does not implement prepare_item().' ); |
192 | 194 | } |
193 | 195 | |
194 | 196 | public function test_get_item_schema() { |
195 | 197 | // TODO: Implement test_get_item_schema() method. |
| 198 | $this->markTestSkipped( 'Controller does not implement get_item_schema().' ); |
196 | 199 | } |
197 | 200 | } |
diff --git a/tests/phpunit/tests/rest-api/rest-themes-controller.php b/tests/phpunit/tests/rest-api/rest-themes-controller.php
index 5acbf7d0f9..efec21b371 100644
a
|
b
|
class WP_Test_REST_Themes_Controller extends WP_Test_REST_Controller_Testcase { |
1197 | 1197 | /** |
1198 | 1198 | * The create_item() method does not exist for themes. |
1199 | 1199 | */ |
1200 | | public function test_create_item() {} |
| 1200 | public function test_create_item() { |
| 1201 | $this->markTestSkipped( 'Controller does not implement create_item().' ); |
| 1202 | } |
1201 | 1203 | |
1202 | 1204 | /** |
1203 | 1205 | * The update_item() method does not exist for themes. |
1204 | 1206 | */ |
1205 | | public function test_update_item() {} |
| 1207 | public function test_update_item() { |
| 1208 | $this->markTestSkipped( 'Controller does not implement update_item().' ); |
| 1209 | } |
1206 | 1210 | |
1207 | 1211 | /** |
1208 | 1212 | * Test single theme. |
… |
… |
class WP_Test_REST_Themes_Controller extends WP_Test_REST_Controller_Testcase { |
1284 | 1288 | /** |
1285 | 1289 | * The delete_item() method does not exist for themes. |
1286 | 1290 | */ |
1287 | | public function test_delete_item() {} |
| 1291 | public function test_delete_item() { |
| 1292 | $this->markTestSkipped( 'Controller does not implement delete_item().' ); |
| 1293 | } |
1288 | 1294 | |
1289 | 1295 | /** |
1290 | 1296 | * Context is not supported for themes. |
1291 | 1297 | */ |
1292 | | public function test_context_param() {} |
| 1298 | public function test_context_param() { |
| 1299 | $this->markTestSkipped( 'Controller does not implement context_param().' ); |
| 1300 | } |
1293 | 1301 | } |
diff --git a/tests/phpunit/tests/rest-api/rest-widget-types-controller.php b/tests/phpunit/tests/rest-api/rest-widget-types-controller.php
index fd0b3007ec..4df468a49f 100644
a
|
b
|
class WP_Test_REST_Widget_Types_Controller extends WP_Test_REST_Controller_Testc |
517 | 517 | /** |
518 | 518 | * The test_create_item() method does not exist for widget types. |
519 | 519 | */ |
520 | | public function test_create_item() {} |
| 520 | public function test_create_item() { |
| 521 | $this->markTestSkipped( 'Controller does not implement create_item().' ); |
| 522 | } |
521 | 523 | |
522 | 524 | /** |
523 | 525 | * The test_update_item() method does not exist for widget types. |
524 | 526 | */ |
525 | | public function test_update_item() {} |
| 527 | public function test_update_item() { |
| 528 | $this->markTestSkipped( 'Controller does not implement update_item().' ); |
| 529 | } |
526 | 530 | |
527 | 531 | /** |
528 | 532 | * The test_delete_item() method does not exist for widget types. |
529 | 533 | */ |
530 | | public function test_delete_item() {} |
| 534 | public function test_delete_item() { |
| 535 | $this->markTestSkipped( 'Controller does not implement delete_item().' ); |
| 536 | } |
531 | 537 | } |
diff --git a/tests/phpunit/tests/rest-api/rest-widgets-controller.php b/tests/phpunit/tests/rest-api/rest-widgets-controller.php
index be0d84e430..eb33fa0665 100644
a
|
b
|
class WP_Test_REST_Widgets_Controller extends WP_Test_REST_Controller_Testcase { |
217 | 217 | * @ticket 41683 |
218 | 218 | */ |
219 | 219 | public function test_context_param() { |
| 220 | $this->markTestSkipped( 'Controller does not implement context_param().' ); |
220 | 221 | } |
221 | 222 | |
222 | 223 | /** |
… |
… |
class WP_Test_REST_Widgets_Controller extends WP_Test_REST_Controller_Testcase { |
1438 | 1439 | * The test_prepare_item() method does not exist for sidebar. |
1439 | 1440 | */ |
1440 | 1441 | public function test_prepare_item() { |
| 1442 | $this->markTestSkipped( 'Controller does not implement prepare_item().' ); |
1441 | 1443 | } |
1442 | 1444 | |
1443 | 1445 | /** |