Changeset 48231
- Timestamp:
- 06/30/2020 12:27:05 PM (4 years ago)
- Location:
- trunk/tests/phpunit/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r48229 r48231 150 150 151 151 add_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 ); 152 152 153 $result = wp_update_comment( 153 154 array( … … 157 158 true 158 159 ); 160 161 remove_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 ); 162 159 163 $this->assertWPError( $result ); 160 remove_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 );161 164 } 162 165 -
trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php
r48228 r48231 2809 2809 $response = rest_get_server()->dispatch( $request ); 2810 2810 2811 remove_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 ); 2812 2811 2813 $this->assertErrorResponse( 'rest_comment_failed_edit', $response, 500 ); 2812 2813 remove_filter( 'wp_update_comment_data', array( $this, '_wp_update_comment_data_filter' ), 10, 3 );2814 2814 } 2815 2815
Note: See TracChangeset
for help on using the changeset viewer.