[wp-trac] [WordPress Trac] #55918: Call wpTearDownAfterClass() before deleting all data, instead of after

WordPress Trac noreply at wordpress.org
Wed Sep 21 00:57:40 UTC 2022


#55918: Call wpTearDownAfterClass() before deleting all data, instead of after
--------------------------------------+---------------------
 Reporter:  SergeyBiryukov            |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  6.1
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by ironprogrammer):

 Replying to [comment:8 SergeyBiryukov]:

 > Happy to do it the other way around and standardize on
 `set_up_before_class()` / `tear_down_after_class()` if that's preferred.
 Either way, the bug should be fixed for `wpTearDownAfterClass()` and
 `tear_down_after_class()` to have access to the same data and to become
 interchangeable. As mentioned in the ticket description, the
 standardization can be a potential future enhancement and does not have to
 be in the scope of this ticket.

 🙇🏼‍♂️ Please accept my apologies, Sergey, as my comments pertained to
 the standardization bits of this ticket. I didn't intend to squelch the
 fixes that have been proposed 😔 I agree that the silent failure described
 should be addressed for now.

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


More information about the wp-trac mailing list