Changeset 48997 for trunk/tests/phpunit/tests/ajax/EditComment.php
- Timestamp:
- 09/18/2020 01:48:27 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/EditComment.php
r48937 r48997 150 150 151 151 // Make the request. 152 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 152 $this->expectException( 'WPAjaxDieStopException' ); 153 $this->expectExceptionMessage( '-1' ); 153 154 $this->_handleAjax( 'edit-comment' ); 154 155 } … … 178 179 179 180 // Make the request. 180 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 181 $this->expectException( 'WPAjaxDieStopException' ); 182 $this->expectExceptionMessage( '-1' ); 181 183 $this->_handleAjax( 'get-comments' ); 182 184 } … … 198 200 199 201 // Make the request. 200 $this->setExpectedException( 'WPAjaxDieStopException', '-1' ); 202 $this->expectException( 'WPAjaxDieStopException' ); 203 $this->expectExceptionMessage( '-1' ); 201 204 $this->_handleAjax( 'edit-comment' ); 202 205 } … … 226 229 227 230 // Make the request. 228 $this->setExpectedException( 'WPAjaxDieStopException', 'wp_update_comment_data filter fails for this comment.' ); 231 $this->expectException( 'WPAjaxDieStopException' ); 232 $this->expectExceptionMessage( 'wp_update_comment_data filter fails for this comment.' ); 229 233 $this->_handleAjax( 'edit-comment' ); 230 234 }
Note: See TracChangeset
for help on using the changeset viewer.