Make WordPress Core

Changeset 1244 in tests


Ignore:
Timestamp:
03/14/2013 12:36:07 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Update get_home_path() test to reflect the change in [WP23669]. see #23175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/admin/includesFile.php

    r1149 r1244  
    1818        $siteurl = get_option( 'siteurl' );
    1919        $sfn = $_SERVER['SCRIPT_FILENAME'];
    20         $this->assertEquals( ABSPATH, get_home_path() );
     20        $this->assertEquals( str_replace( '\\', '/', ABSPATH ), get_home_path() );
    2121
    2222        update_option( 'home', 'http://localhost' );
     
    2424
    2525        $_SERVER['SCRIPT_FILENAME'] = 'D:\root\vhosts\site\httpdocs\wp\wp-admin\options-permalink.php';
    26         $this->assertEquals( 'D:\root\vhosts\site\httpdocs/', get_home_path() );
     26        $this->assertEquals( 'D:/root/vhosts/site/httpdocs/', get_home_path() );
    2727
    2828        $_SERVER['SCRIPT_FILENAME'] = '/Users/foo/public_html/trunk/wp/wp-admin/options-permalink.php';
Note: See TracChangeset for help on using the changeset viewer.