[wp-trac] [WordPress Trac] #63635: Tests: rest-posts-controller hooks blow under certain circumstances

WordPress Trac noreply at wordpress.org
Mon Jun 30 11:56:28 UTC 2025


#63635: Tests: rest-posts-controller hooks blow under certain circumstances
-------------------------------------------------+-------------------------
 Reporter:  SirLouen                             |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  REST API                             |     Version:  4.8
 Severity:  blocker                              |  Resolution:
 Keywords:  has-patch has-unit-tests dev-        |     Focuses:  tests
  feedback                                       |
-------------------------------------------------+-------------------------

Comment (by SirLouen):

 This is more convoluted than I expected

 I've tested all 16 failing tests individually and they all pass
 Same for running the whole class `WP_Test_REST_Posts_Controller`
 {{{
 npm run test:php -- --filter WP_Test_REST_Posts_Controller
 }}}

 This only fails when running the whole `restapi` group `npm run test:php
 -- --group restapi`

 So it seems debugging this will be not as straightforward was I thought.
 Lets see where to start from.

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


More information about the wp-trac mailing list