mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Tests: Add missing parent::tearDown().
Also, remove a `tearDown()` method that was not serving any purpose. Fixes #45931. git-svn-id: https://develop.svn.wordpress.org/trunk@44584 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c80325658f
commit
dd85c357d8
@ -13,6 +13,7 @@ class Tests_Formatting_Redirect extends WP_UnitTestCase {
|
||||
|
||||
function tearDown() {
|
||||
remove_filter( 'home_url', array( $this, 'home_url' ) );
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
function home_url() {
|
||||
|
||||
@ -2736,10 +2736,6 @@ class WP_Test_REST_Users_Controller extends WP_Test_REST_Controller_Testcase {
|
||||
update_user_meta( $user->ID, 'my_custom_int', $value );
|
||||
}
|
||||
|
||||
public function tearDown() {
|
||||
parent::tearDown();
|
||||
}
|
||||
|
||||
protected function check_user_data( $user, $data, $context, $links ) {
|
||||
$this->assertEquals( $user->ID, $data['id'] );
|
||||
$this->assertEquals( $user->display_name, $data['name'] );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user