WordPress.org

Make WordPress Core

Ticket #20449: 18768-UT.patch

File 18768-UT.patch, 825 bytes (added by WraithKenny, 17 months ago)

adds an assertion for 18768

  • tests/admin/includesFile.php

     
    1212 
    1313        /** 
    1414         * @ticket 20449 
     15         * @ticket 18768 
    1516         */ 
    1617        function test_get_home_path() { 
    1718                $home = get_option( 'home' ); 
     
    3132                $_SERVER['SCRIPT_FILENAME'] = 'S:/home/wordpress/trunk/wp/wp-admin/options-permalink.php'; 
    3233                $this->assertEquals( 'S:/home/wordpress/trunk/', get_home_path() ); 
    3334 
     35                $_SERVER['SCRIPT_FILENAME'] = '/Users/foo/Sites/vhosts/wp.dev/wp/wp-admin/options-permalink.php'; 
     36                $this->assertEquals( '/Users/foo/Sites/vhosts/wp.dev/', get_home_path() ); 
     37 
    3438                update_option( 'home', $home ); 
    3539                update_option( 'siteurl', $siteurl ); 
    3640                $_SERVER['SCRIPT_FILENAME'] = $sfn;