[wp-trac] [WordPress Trac] #55652: Test tool and unit test improvements for 6.1

WordPress Trac noreply at wordpress.org
Mon Jul 25 13:31:39 UTC 2022

#55652: Test tool and unit test improvements for 6.1
 Reporter:  hellofromTonya            |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.1
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:

Comment (by SergeyBiryukov):

 In [changeset:"53773" 53773]:
 #!CommitTicketReference repository="" revision="53773"
 Tests: Add failure messages for site icon and custom logo tests.

 This makes the assertions more helpful, as per the
 /writing-phpunit-tests/#using-assertions Writing PHP Tests] guidelines:
 > All PHPUnit assertions, as well as all WordPress custom assertions,
 allow for a `$message` parameter to be passed. This message will be
 displayed when the assertion fails and can help immensely when debugging a
 test. This parameter should always be used if more than one assertion is
 used in a test method.

 Follow-up to [33181], [36905].

 See #55652.

Ticket URL: <https://core.trac.wordpress.org/ticket/55652#comment:86>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list