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

WordPress Trac noreply at wordpress.org
Wed Dec 15 18:06:29 UTC 2021


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

Comment (by SergeyBiryukov):

 In [changeset:"52381" 52381]:
 {{{
 #!CommitTicketReference repository="" revision="52381"
 Tests: Add an assertion to test the
 `WP_REST_Server::add_site_logo_to_index()` method.

 Additionally:
 * Move the test for `WP_REST_Server::add_active_theme_link_to_index()` to
 a more logical place.
 * Replace `assertEquals()` with `assertSame()` in site icon test to also
 check the type of the value.
 * Use a more consistent pattern for the tests.

 Follow-up to [51241], [52080].

 Props ignatggeorgiev, desrosj, SergeyBiryukov.
 Fixes #53516. See #53363.
 }}}

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


More information about the wp-trac mailing list