Changeset 987 in tests
- Timestamp:
- 08/21/2012 03:42:54 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post/objects.php
r977 r987 49 49 $this->assertInstanceOf( 'WP_Post', $post ); 50 50 $this->assertEquals( $id, $post->ID ); 51 52 // Make sure stdClass in $GLOBALS['post'] is handled 53 $post_std = $post->to_array(); 54 $this->assertInternalType( 'array', $post_std ); 55 $post_std = (object) $post_std; 56 $GLOBALS['post'] = $post_std; 57 $pid = null; 58 $post = get_post( $pid ); 59 $this->assertInstanceOf( 'WP_Post', $post ); 60 $this->assertEquals( $id, $post->ID ); 61 unset( $GLOBALS['post'] ); 51 62 } 52 63
Note: See TracChangeset
for help on using the changeset viewer.