Make WordPress Core

Changeset 992 in tests


Ignore:
Timestamp:
08/27/2012 04:23:10 PM (14 years ago)
Author:
ryan
Message:

Tests for get_blog_post(). see #WP21595

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/ms.php

    r990 r992  
    400400
    401401                $post_id = $this->factory->post->create();
    402                 //$this->assertInstanceOf( 'WP_Post', get_post( $post_id ) );
     402                $this->assertInstanceOf( 'WP_Post', get_post( $post_id ) );
    403403                switch_to_blog( $blog_id );
    404404                $this->assertNull( get_post( $post_id ) );
    405405                $post = get_blog_post( $current_blog_id, $post_id );
    406                 //$this->assertInstanceOf( 'WP_Post', $post );
     406                $this->assertInstanceOf( 'WP_Post', $post );
    407407                $this->assertEquals( $post_id, $post->ID );
    408408                restore_current_blog();
    … …  
    417417                // Test get_blog_post() with currently active blog ID.
    418418                $post = get_blog_post( $blog_id, $post_id2 );
    419                 //$this->assertInstanceOf( 'WP_Post', $post );
     419                $this->assertInstanceOf( 'WP_Post', $post );
    420420                $this->assertEquals( $post_id2, $post->ID );
     421                restore_current_blog();
    421422        }
    422423}
Note: See TracChangeset for help on using the changeset viewer.