Make WordPress Core

Changeset 846 in tests


Ignore:
Timestamp:
07/02/2012 12:52:09 AM (14 years ago)
Author:
kurtpayne
Message:

Run ajax tests in separate processes so DOING_AJAX doesn't interfere with other tests

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_compression_test.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxCompressionTest extends WP_Ajax_UnitTestCase {
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_delete_comments.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxCommentsDelete extends WP_Ajax_UnitTestCase {
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_dim_comments.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxCommentsDim extends WP_Ajax_UnitTestCase {
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_edit_comment.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxCommentsEdit extends WP_Ajax_UnitTestCase {
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_get_comments.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxCommentsGet extends WP_Ajax_UnitTestCase {
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_replyto_comment.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxCommentsReply extends WP_Ajax_UnitTestCase {
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_save_draft.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxSaveDraft extends WP_Ajax_UnitTestCase {
     
    2122         */
    2223        protected $_post = null;
    23        
    2424       
    2525        /**
  • trunk/wp-testcase/test-ajax-actions/test_admin_ajax_tag_search.php

    r835 r846  
    1313 * @since      3.4.0
    1414 * @group      ajax
     15 * @runTestsInSeparateProcesses
    1516 */
    1617class TestAjaxTagSearch extends WP_Ajax_UnitTestCase {
  • trunk/wp-testlib/testcase-ajax.php

    r835 r846  
    5252
    5353        /**
    54          * Constructor.
    55          * Register all of the ajax actions
    56          */
    57         public function __construct() {
    58                 parent::__construct();
    59                 foreach ( array_merge( $this->_core_actions_get, $this->_core_actions_post ) as $action )
    60                         if ( function_exists( 'wp_ajax_' . str_replace( '-', '_', $action ) ) )
    61                                 add_action( 'wp_ajax_' . $action, 'wp_ajax_' . str_replace( '-', '_', $action ), 1 );
    62         }
    63 
    64         /**
    6554         * Set up the test fixture.
    6655         * Override wp_die(), pretend to be ajax, and suppres E_WARNINGs
     
    6857        public function setUp() {
    6958                parent::setUp();
     59
     60                // Register the core actions
     61                foreach ( array_merge( $this->_core_actions_get, $this->_core_actions_post ) as $action )
     62                        if ( function_exists( 'wp_ajax_' . str_replace( '-', '_', $action ) ) )
     63                                add_action( 'wp_ajax_' . $action, 'wp_ajax_' . str_replace( '-', '_', $action ), 1 );
     64
    7065                add_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 );
    7166                if ( !defined( 'DOING_AJAX' ) )
Note: See TracChangeset for help on using the changeset viewer.