[wp-trac] [WordPress Trac] #60426: Update WP_Test_REST_TestCase::assertErrorResponse() to allow custom failure messages

WordPress Trac noreply at wordpress.org
Tue Apr 16 09:58:03 UTC 2024


#60426: Update WP_Test_REST_TestCase::assertErrorResponse() to allow custom failure
messages
----------------------------------------+-------------------------------
 Reporter:  antonvlasenko               |       Owner:  (none)
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Build/Test Tools            |     Version:
 Severity:  trivial                     |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  coding-standards
----------------------------------------+-------------------------------
Changes (by swissspidy):

 * keywords:  needs-patch => needs-patch good-first-bug
 * component:  REST API => Build/Test Tools


Comment:

 > Furthermore, all the instances where this method is being used across
 the codebase need to be refactored to include the new $failure_message
 parameter, ensuring consistency.

 This is best done on an ad-hoc basis when touching those tests anyway.

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


More information about the wp-trac mailing list