[wp-trac] [WordPress Trac] #54183: Tests: decide on how to handle deprecations in PHPUnit

WordPress Trac noreply at wordpress.org
Sun Sep 26 03:48:58 UTC 2021


#54183: Tests: decide on how to handle deprecations in PHPUnit
-------------------------------------------------+-------------------------
 Reporter:  jrf                                  |       Owner:
                                                 |  SergeyBiryukov
     Type:  task (blessed)                       |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.9
Component:  Build/Test Tools                     |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-dev-note php81 has-patch has-  |     Focuses:
  unit-tests commit                              |
-------------------------------------------------+-------------------------

Comment (by costdev):

 Attaching
 [https://core.trac.wordpress.org/attachment/ticket/54183/54183-option-3.patch
 54183-option-3.patch] for review.

 - Skips risky tests.
 - Influenced by [https://github.com/WordPress/wordpress-
 develop/blob/90b6ae994322514aa049afd1cec654416be5043a/tests/phpunit/tests
 /rest-api/rest-block-renderer-controller.php#L640 this implementation].
 - Adds `if ( ! empty( $tags ) ) {}` check to
 `WP_Test_REST_Tags_Controller()->test_get_terms_post_args_paging()` else
 skips the test.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54183#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list