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

WordPress Trac noreply at wordpress.org
Thu Aug 4 18:28:55 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:"53836" 53836]:
 {{{
 #!CommitTicketReference repository="" revision="53836"
 Tests: Combine test classes for `get_edit_term_link()` tests.

 There were two sets of tests for the function:
 * One in the `link` directory, based on the `link-template.php` file name.
 * One in the `term` directory, based on the component name.

 To avoid confusion and make it easier to decide where new tests should go
 in the future, the existing tests are now combined in the former location.

 Includes:
 * Setting the current user in `::set_up()` instead of each individual test
 method.
 * Changing the custom taxonomy name to `wptests_tax` for consistency with
 other tests.
 * Moving `::register_custom_taxonomy()` and `::get_term()` helpers to the
 beginning of the class.

 Follow-up to [32954], [36646], [52180], [52255], [53833].

 See #55652.
 }}}

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


More information about the wp-trac mailing list