[wp-trac] [WordPress Trac] #50986: PHPUnit tests: unregister custom settings after rest-api tests

WordPress Trac noreply at wordpress.org
Fri Aug 14 16:33:40 UTC 2020


#50986: PHPUnit tests: unregister custom settings after rest-api tests
--------------------------+-----------------------------
 Reporter:  david.binda   |       Owner:  SergeyBiryukov
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  5.6
Component:  REST API      |     Version:  4.7
 Severity:  minor         |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48791" 48791]:
 {{{
 #!CommitTicketReference repository="" revision="48791"
 Tests: Consistently unregister custom settings after performing assertions
 in `WP_Test_REST_Settings_Controller`.

 This ensures that those settings don't leak to other tests.

 Props david.binda, TimothyBlynJacobs, SergeyBiryukov.
 Fixes #50986.
 }}}

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


More information about the wp-trac mailing list