mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Build/Test Tools: Fix and standardise calls to the tearDown() method in the test suite.
The parent method should be called after any test-specific teardown. See #52625 git-svn-id: https://develop.svn.wordpress.org/trunk@50450 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -53,7 +53,7 @@ class Tests_Functions_Deprecated extends WP_UnitTestCase {
|
||||
/**
|
||||
* Tears down the test fixture.
|
||||
*/
|
||||
public function teardown() {
|
||||
public function tearDown() {
|
||||
remove_action( 'deprecated_function_run', array( $this, 'deprecated_function' ), 10, 3 );
|
||||
remove_action( 'deprecated_function_trigger_error', '__return_false' );
|
||||
remove_action( 'deprecated_argument_run', array( $this, 'deprecated_argument' ), 10, 3 );
|
||||
|
||||
Reference in New Issue
Block a user