Make WordPress Core

Changeset 1311 in tests


Ignore:
Timestamp:
07/20/2013 05:05:47 PM (11 years ago)
Author:
ryan
Message:

s/get_content_url/get_url_in_content/

see #24202

File:
1 edited

Legend:

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

    r1302 r1311  
    108108
    109109        $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 ) );
    111111        $this->assertEquals( $content_link, $link );
    112112
    113113        $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 ) );
    115115        $this->assertEquals( $content_link, $link );
    116116
    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 ) );
    118118        $this->assertEquals( $content_link, $link );
    119119
    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 ) );
    121121        $this->assertEquals( $content_link, $link );
    122122
    123123        $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 ) );
    125125        $this->assertEquals( $content_link, '' );
    126126
    127127        $comm_post_id = $this->factory->post->create( array( 'post_content' => $commentary ) );
    128128        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 ) );
    130130        $this->assertEquals( $content_link, '' );
    131131    }
Note: See TracChangeset for help on using the changeset viewer.