Make WordPress Core

Changeset 641 in tests


Ignore:
Timestamp:
04/08/2012 02:26:05 AM (12 years ago)
Author:
nacin
Message:

Create a user in WPTestPostMeta instead of relying on the default user, which may no longer exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_post.php

    r590 r641  
    644644        parent::setUp();
    645645
    646         $this->author = get_user_by( 'login', WP_USER_NAME );
     646        $this->author = new WP_User( $this->_make_user('editor') );
    647647
    648648        $post = array(
Note: See TracChangeset for help on using the changeset viewer.