Make WordPress Core


Ignore:
Timestamp:
09/13/2022 08:38:56 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Tests: Rename the test for wp_guess_url() to match the function name.

Includes adding public visibilty keyword for the data provider.

Follow-up to [54146].

See #36827.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/wpGuessUrl.php

    r54146 r54148  
    1212     * @ticket 36827
    1313     *
    14      * @dataProvider data_guess_url_should_return_site_url
     14     * @dataProvider data_wp_guess_url_should_return_site_url
    1515     *
    1616     * @param string $url The URL to navigate to, relative to `site_url()`.
    1717     */
    18     public function test_guess_url_should_return_site_url( $url ) {
     18    public function test_wp_guess_url_should_return_site_url( $url ) {
    1919        $siteurl = site_url();
    2020        $this->go_to( site_url( $url ) );
     
    2727     * @return array
    2828     */
    29     function data_guess_url_should_return_site_url() {
     29    public function data_wp_guess_url_should_return_site_url() {
    3030        return array(
    3131            'no trailing slash'                            => array( 'url' => 'wp-admin' ),
Note: See TracChangeset for help on using the changeset viewer.