WordPress.org

Make WordPress Core

Opened 4 months ago

Last modified 3 weeks ago

#53746 new task (blessed)

Tidy up the tearDown() methods — at Version 2

Reported by: johnbillion Owned by:
Milestone: 6.0 Priority: normal
Severity: normal Version:
Component: Build/Test Tools Keywords: has-patch has-unit-tests
Focuses: Cc:

Description (last modified by johnbillion)

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

Previously: [50463]

Change History (2)

This ticket was mentioned in PR #1514 on WordPress/wordpress-develop by johnbillion.


4 months ago

  • Keywords has-patch has-unit-tests added

#2 @johnbillion
4 months ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.