WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/23/2020 06:39:32 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Embeds: Fix incorrect usage of get_home_url() in oEmbed tests.

Switch to home_url() for consistency with other tests and to avoid confusion.

Props david.binda.
Fixes #49988.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed/controller.php

    r46586 r47615  
    337337        $this->assertEquals( '1.0', $data['version'] );
    338338        $this->assertEquals( get_bloginfo( 'name' ), $data['provider_name'] );
    339         $this->assertEquals( get_home_url(), $data['provider_url'] );
     339        $this->assertEquals( home_url(), $data['provider_url'] );
    340340        $this->assertEquals( $user->display_name, $data['author_name'] );
    341341        $this->assertEquals( get_author_posts_url( $user->ID, $user->user_nicename ), $data['author_url'] );
     
    380380        $this->assertEquals( '1.0', $data['version'] );
    381381        $this->assertEquals( get_bloginfo( 'name' ), $data['provider_name'] );
    382         $this->assertEquals( get_home_url(), $data['provider_url'] );
     382        $this->assertEquals( home_url(), $data['provider_url'] );
    383383        $this->assertEquals( get_bloginfo( 'name' ), $data['author_name'] );
    384         $this->assertEquals( get_home_url(), $data['author_url'] );
     384        $this->assertEquals( home_url(), $data['author_url'] );
    385385        $this->assertEquals( $post->post_title, $data['title'] );
    386386        $this->assertEquals( 'rich', $data['type'] );
     
    425425        $this->assertEquals( '1.0', $data['version'] );
    426426        $this->assertEquals( get_bloginfo( 'name' ), $data['provider_name'] );
    427         $this->assertEquals( get_home_url(), $data['provider_url'] );
     427        $this->assertEquals( home_url(), $data['provider_url'] );
    428428        $this->assertEquals( $user->display_name, $data['author_name'] );
    429429        $this->assertEquals( get_author_posts_url( $user->ID, $user->user_nicename ), $data['author_url'] );
     
    686686        $this->assertEquals( '1.0', $data['version'] );
    687687        $this->assertEquals( get_bloginfo( 'name' ), $data['provider_name'] );
    688         $this->assertEquals( get_home_url(), $data['provider_url'] );
     688        $this->assertEquals( home_url(), $data['provider_url'] );
    689689        $this->assertEquals( $user->display_name, $data['author_name'] );
    690690        $this->assertEquals( get_author_posts_url( $user->ID, $user->user_nicename ), $data['author_url'] );
     
    735735        $this->assertEquals( '1.0', $data['version'] );
    736736        $this->assertEquals( get_bloginfo( 'name' ), $data['provider_name'] );
    737         $this->assertEquals( get_home_url(), $data['provider_url'] );
     737        $this->assertEquals( home_url(), $data['provider_url'] );
    738738        $this->assertEquals( get_bloginfo( 'name' ), $data['author_name'] );
    739         $this->assertEquals( get_home_url(), $data['author_url'] );
     739        $this->assertEquals( home_url(), $data['author_url'] );
    740740        $this->assertEquals( $post->post_title, $data['title'] );
    741741        $this->assertEquals( 'rich', $data['type'] );
Note: See TracChangeset for help on using the changeset viewer.