WordPress.org

Make WordPress Core

Changeset 34803


Ignore:
Timestamp:
10/03/2015 06:35:58 PM (4 years ago)
Author:
DrewAPicture
Message:

Tests: Move the global permalinks reset routine to only fire when running core tests.

Should fix intermittent mysqli response errors in the AJAX tests.

See #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase.php

    r34802 r34803  
    4242        $this->factory = new WP_UnitTest_Factory;
    4343        $this->clean_up_global_scope();
     44
     45        self::$default_permalink_structure = get_option( 'permalink_structure' );
    4446
    4547        /*
     
    5355            $this->reset_taxonomies();
    5456            $this->reset_post_statuses();
     57            $this->reset_permalinks();
    5558        }
    5659
     
    7376            add_filter( 'pre_option_db_version', array( $this, 'db_version' ) );
    7477        }
    75 
    76         self::$default_permalink_structure = get_option( 'permalink_structure' );
    77 
    78         $this->reset_permalinks();
    7978    }
    8079
Note: See TracChangeset for help on using the changeset viewer.