Ticket #47568: 47568-2.diff
File 47568-2.diff, 1.2 KB (added by , 6 years ago) |
---|
-
tests/phpunit/includes/testcase-ajax.php
211 211 * $this->setExpectedException( 'WPAjaxDieContinueException', 'something contained in $message' ); 212 212 * </code> 213 213 * 214 * @param string $message 214 * @param string $message The message to set. 215 * 216 * @throws WPAjaxDieContinueException Thrown to stop further execution. 217 * @throws WPAjaxDieStopException Thrown to stop execution. 215 218 */ 216 219 public function dieHandler( $message ) { 217 220 $this->_last_response .= ob_get_clean(); … … 231 234 * Switch between user roles 232 235 * E.g. administrator, editor, author, contributor, subscriber 233 236 * 234 * @param string $role 237 * @param string $role The role to set. 235 238 */ 236 239 protected function _setRole( $role ) { 237 240 $post = $_POST; … … 245 248 * Capture the output via output buffering, and if there is any, store 246 249 * it in $this->_last_response. 247 250 * 248 * @param string $action 251 * @param string $action The action to handle. 249 252 */ 250 253 protected function _handleAjax( $action ) { 251 254