Changeset 1311 in tests
- Timestamp:
- 07/20/2013 05:05:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/post/formats.php
r1302 r1311 108 108 109 109 $link_post_id = $this->factory->post->create( array( 'post_content' => $link ) ); 110 $content_link = get_ content_url( get_post_field( 'post_content', $link_post_id ) );110 $content_link = get_url_in_content( get_post_field( 'post_content', $link_post_id ) ); 111 111 $this->assertEquals( $content_link, $link ); 112 112 113 113 $link_with_post_id = $this->factory->post->create( array( 'post_content' => $link_with_commentary ) ); 114 $content_link = get_ content_url( get_post_field( 'post_content', $link_with_post_id ) );114 $content_link = get_url_in_content( get_post_field( 'post_content', $link_with_post_id ) ); 115 115 $this->assertEquals( $content_link, $link ); 116 116 117 $content_link = get_ content_url( get_post_field( 'post_content', $link_post_id ) );117 $content_link = get_url_in_content( get_post_field( 'post_content', $link_post_id ) ); 118 118 $this->assertEquals( $content_link, $link ); 119 119 120 $content_link = get_ content_url( get_post_field( 'post_content', $link_with_post_id ) );120 $content_link = get_url_in_content( get_post_field( 'post_content', $link_with_post_id ) ); 121 121 $this->assertEquals( $content_link, $link ); 122 122 123 123 $empty_post_id = $this->factory->post->create( array( 'post_content' => '' ) ); 124 $content_link = get_ content_url( get_post_field( 'post_content', $empty_post_id ) );124 $content_link = get_url_in_content( get_post_field( 'post_content', $empty_post_id ) ); 125 125 $this->assertEquals( $content_link, '' ); 126 126 127 127 $comm_post_id = $this->factory->post->create( array( 'post_content' => $commentary ) ); 128 128 update_post_meta( $comm_post_id, '_format_url', $link ); 129 $content_link = get_ content_url( get_post_field( 'post_content', $comm_post_id ) );129 $content_link = get_url_in_content( get_post_field( 'post_content', $comm_post_id ) ); 130 130 $this->assertEquals( $content_link, '' ); 131 131 }
Note: See TracChangeset
for help on using the changeset viewer.