Changeset 1302 in tests for trunk/tests/post/formats.php
- Timestamp:
- 07/03/2013 09:56:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post/formats.php
r1293 r1302 115 115 $this->assertEquals( $content_link, $link ); 116 116 117 update_post_meta( $link_post_id, '_format_url', $link );118 117 $content_link = get_content_url( get_post_field( 'post_content', $link_post_id ) ); 119 118 $this->assertEquals( $content_link, $link ); 120 119 121 update_post_meta( $link_with_post_id, '_format_url', $link );122 120 $content_link = get_content_url( get_post_field( 'post_content', $link_with_post_id ) ); 123 121 $this->assertEquals( $content_link, $link ); 124 122 125 123 $empty_post_id = $this->factory->post->create( array( 'post_content' => '' ) ); 126 update_post_meta( $empty_post_id, '_format_url', $link );127 124 $content_link = get_content_url( get_post_field( 'post_content', $empty_post_id ) ); 128 125 $this->assertEquals( $content_link, '' );
Note: See TracChangeset
for help on using the changeset viewer.