[wp-trac] [WordPress Trac] #54662: The `test_get_terms_post_args_paging()` test performs no assertions

WordPress Trac noreply at wordpress.org
Sun Dec 19 14:45:57 UTC 2021


#54662: The `test_get_terms_post_args_paging()` test performs no assertions
--------------------------+------------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:
 Severity:  normal        |   Keywords:  needs-unit-tests
  Focuses:                |
--------------------------+------------------------------
 The `WP_Test_REST_Tags_Controller::test_get_terms_post_args_paging()` test
 is faulty and performs no assertions. The response from both of the calls
 to `WP_REST_Request` are empty, therefore nothing is iterated and the
 calls to `$this->assertSame()` within both of the `foreach()` loops are
 never called.

 Ref: https://github.com/WordPress/wordpress-
 develop/runs/4574808918?check_suite_focus=true#step:20:329

 Needs investigating.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54662>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list