WordPress.org

Make WordPress Core

Changeset 1302 in tests


Ignore:
Timestamp:
07/03/13 21:56:32 (20 months ago)
Author:
ocean90
Message:

Don't set _format_url post meta in Tests_Post_Formats::test_get_content_url(), see #24452.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/post/formats.php

    r1293 r1302  
    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, '' ); 
Note: See TracChangeset for help on using the changeset viewer.