Ticket #24484: 24484.ut.2.patch
File 24484.ut.2.patch, 1.3 KB (added by , 11 years ago) |
---|
-
trunk/tests/post/formats.php
114 114 $content_link = get_content_url( get_post_field( 'post_content', $link_with_post_id ) ); 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, '' ); 129 126 130 127 $comm_post_id = $this->factory->post->create( array( 'post_content' => $commentary ) ); 131 update_post_meta( $comm_post_id, '_format_url', $link );132 128 $content_link = get_content_url( get_post_field( 'post_content', $comm_post_id ) ); 133 129 $this->assertEquals( $content_link, '' ); 134 130 } 135 } 136 No newline at end of file 131 }