WordPress.org

Make WordPress Core

Ticket #47568: 47568.diff

File 47568.diff, 1.2 KB (added by andizer, 16 months ago)
  • tests/phpunit/includes/testcase-ajax.php

     
    211211         * $this->setExpectedException( 'WPAjaxDieContinueException', 'something contained in $message' );
    212212         * </code>
    213213         *
    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,
    215218         */
    216219        public function dieHandler( $message ) {
    217220                $this->_last_response .= ob_get_clean();
     
    231234         * Switch between user roles
    232235         * E.g. administrator, editor, author, contributor, subscriber
    233236         *
    234          * @param string $role
     237         * @param string $role The role to set.
    235238         */
    236239        protected function _setRole( $role ) {
    237240                $post    = $_POST;
     
    245248         * Capture the output via output buffering, and if there is any, store
    246249         * it in $this->_last_response.
    247250         *
    248          * @param string $action
     251         * @param string $action The action to handle.
    249252         */
    250253        protected function _handleAjax( $action ) {
    251254