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

WordPress Trac noreply at wordpress.org
Thu Aug 13 16:24:35 UTC 2020


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

 * version:   => 4.7
 * component:  General => REST API
 * milestone:  Awaiting Review => 5.6


Comment:

 Thanks for the patch @davidbinda!

 Could we move all the unregister_setting calls to `tearDown`? That way we
 can guarantee they get executed if an assertion fails?

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


More information about the wp-trac mailing list