WordPress.org

Make WordPress Core

Ticket #24484: 24484.ut.2.patch

File 24484.ut.2.patch, 1.3 KB (added by ocean90, 10 months ago)
  • trunk/tests/post/formats.php

     
    114114                $content_link = get_content_url( get_post_field( 'post_content', $link_with_post_id ) ); 
    115115                $this->assertEquals( $content_link, $link ); 
    116116 
    117                 update_post_meta( $link_post_id, '_format_url', $link ); 
    118117                $content_link = get_content_url( get_post_field( 'post_content', $link_post_id ) ); 
    119118                $this->assertEquals( $content_link, $link ); 
    120119 
    121                 update_post_meta( $link_with_post_id, '_format_url', $link ); 
    122120                $content_link = get_content_url( get_post_field( 'post_content', $link_with_post_id ) ); 
    123121                $this->assertEquals( $content_link, $link ); 
    124122 
    125123                $empty_post_id = $this->factory->post->create( array( 'post_content' => '' ) ); 
    126                 update_post_meta( $empty_post_id, '_format_url', $link ); 
    127124                $content_link = get_content_url( get_post_field( 'post_content', $empty_post_id ) ); 
    128125                $this->assertEquals( $content_link, '' ); 
    129126 
    130127                $comm_post_id = $this->factory->post->create( array( 'post_content' => $commentary ) ); 
    131                 update_post_meta( $comm_post_id, '_format_url', $link ); 
    132128                $content_link = get_content_url( get_post_field( 'post_content', $comm_post_id ) ); 
    133129                $this->assertEquals( $content_link, '' ); 
    134130        } 
    135 } 
    136  No newline at end of file 
     131}