WordPress.org

Make WordPress Core

Changeset 41892


Ignore:
Timestamp:
10/18/2017 02:40:27 AM (2 years ago)
Author:
westonruter
Message:

Customize: Remove incorrect test assertions for the post_date of customization drafts.

Amends [41887].
See #42220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme.php

    r41887 r41892  
    190190        $latest_default_theme = WP_Theme::get_core_default_theme();
    191191        if ( ! $latest_default_theme->exists() || 'twenty' !== substr( $latest_default_theme->get_stylesheet(), 0, 6 ) ) {
    192             $this->fail( 'No Twenty* series default themes are installed' ); 
     192            $this->fail( 'No Twenty* series default themes are installed' );
    193193        }
    194194        $this->assertContains( $latest_default_theme->get_stylesheet(), $this->default_themes );
     
    335335            'data' => $data,
    336336        ) );
    337         $this->assertEquals( get_post( $nav_created_post_ids[0] )->post_date, get_post( $wp_customize->changeset_post_id() )->post_date );
    338         $this->assertEquals( get_post( $nav_created_post_ids[1] )->post_date, get_post( $wp_customize->changeset_post_id() )->post_date );
     337        $this->assertEquals( get_post( $wp_customize->changeset_post_id() )->post_date, get_post( $nav_created_post_ids[0] )->post_date );
     338        $this->assertEquals( get_post( $wp_customize->changeset_post_id() )->post_date, get_post( $nav_created_post_ids[1] )->post_date );
    339339        $this->assertEquals( 'auto-draft', get_post_status( $nav_created_post_ids[0] ) );
    340340        $this->assertEquals( 'auto-draft', get_post_status( $nav_created_post_ids[1] ) );
     
    345345            'data' => $data,
    346346        ) );
    347         $this->assertEquals( get_post( $nav_created_post_ids[0] )->post_date, get_post( $wp_customize->changeset_post_id() )->post_date );
    348         $this->assertEquals( get_post( $nav_created_post_ids[1] )->post_date, get_post( $wp_customize->changeset_post_id() )->post_date );
    349347        $this->assertEquals( 'draft', get_post_status( $nav_created_post_ids[0] ) );
    350348        $this->assertEquals( 'draft', get_post_status( $nav_created_post_ids[1] ) );
Note: See TracChangeset for help on using the changeset viewer.