WordPress.org

Make WordPress Core

Changeset 589 in tests


Ignore:
Timestamp:
03/26/2012 05:32:34 PM (6 years ago)
Author:
kurtpayne
Message:

Fixing failed unit test. See http://unit-test.trac.wordpress.org/ticket/28

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_user_capabilities.php

    r523 r589  
    2727        // this will flush everything and reload it from the db
    2828        unset($GLOBALS['wp_user_roles']);
    29         #$GLOBALS['wp_roles'] = new WP_Roles();
     29        global $wp_roles;
     30        $wp_roles->_init();
    3031    }
    3132
     
    443444
    444445        // user level should be empty
    445         $this->assertNull( $user->user_level );
     446        $this->assertEmpty( $user->user_level );
    446447
    447448
Note: See TracChangeset for help on using the changeset viewer.