WordPress.org

Make WordPress Core

Changeset 1090 in tests


Ignore:
Timestamp:
10/24/12 13:56:39 (21 months ago)
Author:
SergeyBiryukov
Message:

Remove unused global variable. see [840].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/ms.php

    r1089 r1090  
    1313 
    1414    function test_create_and_delete_blog() { 
    15         global $wpdb, $current_site; 
     15        global $wpdb; 
    1616 
    1717        $blog_ids = $this->factory->blog->create_many( 4 ); 
     
    9494 
    9595    function test_get_blogs_of_user() { 
    96         global $current_site; 
    97  
    9896        // Logged out users don't have blogs. 
    9997        $this->assertEquals( array(), get_blogs_of_user( 0 ) ); 
     
    135133 
    136134    function test_is_blog_user() { 
    137         global $current_site, $wpdb; 
     135        global $wpdb; 
    138136 
    139137        $user1_id = $this->factory->user->create( array( 'role' => 'administrator' ) ); 
     
    159157 
    160158    function test_is_user_member_of_blog() { 
    161         global $current_site, $wpdb; 
     159        global $wpdb; 
    162160 
    163161        $user1_id = $this->factory->user->create( array( 'role' => 'administrator' ) ); 
     
    261259 
    262260    function test_get_dashboard_blog() { 
    263         global $current_site; 
    264  
    265261        // if there is no dashboard blog set, current blog is used 
    266262        $dashboard_blog = get_dashboard_blog(); 
     
    377373 
    378374    function test_update_blog_details() { 
    379         global $current_site, $test_action_counter; 
     375        global $test_action_counter; 
    380376 
    381377        $user_id = $this->factory->user->create( array( 'role' => 'administrator' ) ); 
Note: See TracChangeset for help on using the changeset viewer.