[wp-trac] [WordPress Trac] #53746: Tidy up the tearDown() methods

WordPress Trac noreply at wordpress.org
Thu Jul 22 17:53:42 UTC 2021


#53746: Tidy up the tearDown() methods
------------------------------+--------------------
 Reporter:  johnbillion       |      Owner:  (none)
     Type:  task (blessed)    |     Status:  new
 Priority:  normal            |  Milestone:  5.9
Component:  Build/Test Tools  |    Version:
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+--------------------
 The `tearDown()` method in several of the test classes perform redundant
 operations, for example removing or reinstating hooks, which are already
 taken care of in the base test class.

 This means there's code that can be removed from these methods to tidy
 them up.

 Related: #53011

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53746>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list