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

WordPress Trac noreply at wordpress.org
Mon Sep 5 22:26:09 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:"54075" 54075]:
 {{{
 #!CommitTicketReference repository="" revision="54075"
 Tests: Move Site Health unit test class to `phpunit/tests/admin/`.

 Includes:
 * Renaming the test class per the
 [https://make.wordpress.org/core/handbook/testing/automated-testing
 /writing-phpunit-tests/#naming-and-organization naming conventions].
 * Creating a `WP_Site_Health` instance in the `set_up()` method, instead
 of leaving that to each individual test.

 This brings some consistency with the tests for other admin classes, e.g.
 `WP_Community_Events`.

 Follow-up to [45802], [51639].

 See #55652.
 }}}

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


More information about the wp-trac mailing list