Make WordPress Core

Changeset 903 in tests for trunk/includes/testcase-ajax.php


Ignore:
Timestamp:
07/16/2012 05:24:25 PM (14 years ago)
Author:
ryan
Message:

Pinking shears

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/testcase-ajax.php

    r868 r903  
    1616 */
    1717abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase {
    18        
     18
    1919        /**
    2020         * Last AJAX response.  This is set via echo -or- wp_die.
    21          * @var type 
     21         * @var type
    2222         */
    2323        protected $_last_response = '';
     
    2525        /**
    2626         * List of ajax actions called via POST
    27          * @var type 
     27         * @var type
    2828         */
    2929        protected $_core_actions_get = array( 'fetch-list', 'ajax-tag-search', 'wp-compression-test', 'imgedit-preview', 'oembed_cache' );
     
    3737        /**
    3838         * List of ajax actions called via GET
    39          * @var type 
     39         * @var type
    4040         */
    4141        protected $_core_actions_post = array(
     
    7777                $this->factory->post->create_many( 5 );
    7878        }
    79        
     79
    8080        /**
    8181         * Tear down the test fixture.
     
    124124         * $this->setExpectedException( 'WPAjaxDieContinueException', 'something contained in $message' );
    125125         * </code>
    126          * @param string $message 
     126         * @param string $message
    127127         */
    128128        public function dieHandler( $message ) {
     
    143143         * Switch between user roles
    144144         * E.g. administrator, editor, author, contributor, subscriber
    145          * @param string $role 
     145         * @param string $role
    146146         */
    147147        protected function _setRole( $role ) {
     
    156156         * Capture the output via output buffering, and if there is any, store
    157157         * it in $this->_last_message.
    158          * @param string $action 
     158         * @param string $action
    159159         */
    160160        protected function _handleAjax($action) {
    161                
     161
    162162                // Start output buffering
    163163                ini_set( 'implicit_flush', false );
Note: See TracChangeset for help on using the changeset viewer.