[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 11:10: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:  6.6
Component:  Build/Test Tools            |     Version:
 Severity:  trivial                     |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  coding-standards
----------------------------------------+-------------------------------
Changes (by SergeyBiryukov):

 * milestone:  Awaiting Review => 6.6


Comment:

 Thanks for the ticket!

 Just noting that the parameter name should probably be `$message` rather
 than `$failure_message`, for consistency with PHPUnit's own assertion
 methods, as well as custom assertions in `WP_UnitTestCase_Base`, see
 [51478] / #53363.

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


More information about the wp-trac mailing list