WordPress.org

Make WordPress Core

Changeset 1149 in tests


Ignore:
Timestamp:
11/21/12 15:15:46 (20 months ago)
Author:
ryan
Message:

Restore home, siteurl, and _SERVER after test.

File:
1 edited

Legend:

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

    r1148 r1149  
    3131        $_SERVER['SCRIPT_FILENAME'] = 'S:/home/wordpress/trunk/wp/wp-admin/options-permalink.php'; 
    3232        $this->assertEquals( 'S:/home/wordpress/trunk/', get_home_path() ); 
     33 
     34        update_option( 'home', $home ); 
     35        update_option( 'siteurl', $siteurl ); 
     36        $_SERVER['SCRIPT_FILENAME'] = $sfn; 
    3337    } 
    3438} 
Note: See TracChangeset for help on using the changeset viewer.