WordPress.org

Make WordPress Core

Changeset 1290 in tests


Ignore:
Timestamp:
05/22/2013 09:52:28 PM (9 years ago)
Author:
ryan
Message:

In test_setup_postdata_loop(), assert that the looped post is not stomping the global post. see #WP24330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/query.php

    r1289 r1290  
    5252                setup_postdata( $page );
    5353                $content = get_echo( 'the_content', array() );
     54                $this->assertEquals( $post_id, $GLOBALS['post']->ID );
    5455                $this->assertNotEquals( '<p>global post</p>', strip_ws( $content ) );
    5556                wp_reset_postdata();
Note: See TracChangeset for help on using the changeset viewer.