Ticket #45931: 45931.diff
File 45931.diff, 1017 bytes (added by , 6 years ago) |
---|
-
tests/phpunit/tests/formatting/redirect.php
12 12 13 13 function tearDown() { 14 14 remove_filter( 'home_url', array( $this, 'home_url' ) ); 15 parent::tearDown(); 15 16 } 16 17 17 18 function home_url() { -
tests/phpunit/tests/rest-api/rest-users-controller.php
2736 2736 update_user_meta( $user->ID, 'my_custom_int', $value ); 2737 2737 } 2738 2738 2739 public function tearDown() {2740 parent::tearDown();2741 }2742 2743 2739 protected function check_user_data( $user, $data, $context, $links ) { 2744 2740 $this->assertEquals( $user->ID, $data['id'] ); 2745 2741 $this->assertEquals( $user->display_name, $data['name'] );