Make WordPress Core


Ignore:
Timestamp:
10/15/2015 05:50:40 AM (9 years ago)
Author:
wonderboymusic
Message:

Unit Tests: after [35186], "upgrade" the Canonical fixtures.

See #30017, #33968.

File:
1 edited

Legend:

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

    r34802 r35191  
    3939     * @since 4.1.0
    4040     */
    41     public static function generate_shared_fixtures() {
    42         global $wp_rewrite;
    43 
    44         $factory = new WP_UnitTest_Factory;
    45 
     41    public static function generate_shared_fixtures( $factory ) {
    4642        self::$old_current_user = get_current_user_id();
    4743        self::$author_id = $factory->user->create( array( 'user_login' => 'canonical-author' ) );
     
    131127        $tag1 = $factory->term->create( array( 'name' => 'post-formats' ) );
    132128        self::$term_ids[ $tag1 ] = 'post_tag';
    133 
    134         self::commit_transaction();
    135129    }
    136130
     
    141135     */
    142136    public static function delete_shared_fixtures() {
    143         global $wp_rewrite;
    144 
    145137        if ( is_multisite() ) {
    146138            wpmu_delete_user( self::$author_id );
     
    166158        self::$term_ids = array();
    167159        self::$terms = array();
    168 
    169         self::commit_transaction();
    170160    }
    171161
Note: See TracChangeset for help on using the changeset viewer.