Changeset 992 in tests
- Timestamp:
- 08/27/2012 04:23:10 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/ms.php
r990 r992 400 400 401 401 $post_id = $this->factory->post->create(); 402 //$this->assertInstanceOf( 'WP_Post', get_post( $post_id ) );402 $this->assertInstanceOf( 'WP_Post', get_post( $post_id ) ); 403 403 switch_to_blog( $blog_id ); 404 404 $this->assertNull( get_post( $post_id ) ); 405 405 $post = get_blog_post( $current_blog_id, $post_id ); 406 //$this->assertInstanceOf( 'WP_Post', $post );406 $this->assertInstanceOf( 'WP_Post', $post ); 407 407 $this->assertEquals( $post_id, $post->ID ); 408 408 restore_current_blog(); … … 417 417 // Test get_blog_post() with currently active blog ID. 418 418 $post = get_blog_post( $blog_id, $post_id2 ); 419 //$this->assertInstanceOf( 'WP_Post', $post );419 $this->assertInstanceOf( 'WP_Post', $post ); 420 420 $this->assertEquals( $post_id2, $post->ID ); 421 restore_current_blog(); 421 422 } 422 423 }
Note: See TracChangeset
for help on using the changeset viewer.