WordPress.org

Make WordPress Core

Changeset 406 in tests


Ignore:
Timestamp:
08/04/11 20:34:08 (3 years ago)
Author:
ryan
Message:

_make_user() handles this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_user.php

    r398 r406  
    2525        foreach ( array('administrator', 'editor', 'author', 'contributor', 'subscriber' ) as $role ) { 
    2626            $id = $this->_make_user( $role ); 
    27             $this->user_ids[] = $id; 
    2827            $user_role[ $id ] = $role; 
    2928        } 
     
    5150 
    5251        $user_id = $this->_make_user('author'); 
    53         $this->user_ids[] = $user_id; 
    5452 
    5553        // get an option that doesn't exist 
     
    7472 
    7573        $user_id = $this->_make_user('author'); 
    76         $this->user_ids[] = $user_id; 
    7774 
    7875        // get a meta key that doesn't exist 
     
    113110 
    114111        $user_id = $this->_make_user('author'); 
    115         $this->user_ids[] = $user_id; 
    116112 
    117113        // there is already some stuff in the array 
     
    152148            $id = $this->_make_user($role, "test-{$role}"); 
    153149            $user[] = $id; 
    154             $this->user_ids[] = $id; 
    155150        } 
    156151 
     
    174169    function test_user_properties() { 
    175170        $user_id = $this->_make_user('author'); 
    176         $this->user_ids[] = $user_id; 
    177171        $user = new WP_User( $user_id ); 
    178172 
Note: See TracChangeset for help on using the changeset viewer.