Make WordPress Core

Opened 23 months ago

Last modified 12 months ago

#53746 new task (blessed)

Tidy up the tearDown() methods — at Version 2

Reported by: johnbillion's profile johnbillion Owned by:
Milestone: Future Release 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.


23 months ago
#1

  • Keywords has-patch has-unit-tests added

#2 @johnbillion
23 months ago

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