WordPress.org

Make WordPress Core

Changeset 640 in tests


Ignore:
Timestamp:
04/08/12 02:24:07 (3 years ago)
Author:
nacin
Message:

Create a new author in WPTestIncludesMeta instead of relying on the original user, which may no longer exist. Fixes 4 failing tests when running the full test suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_includes_meta.php

    r454 r640  
    44    function setUp() { 
    55        parent::setUp(); 
    6         $this->author = get_user_by( 'login', WP_USER_NAME ); 
     6        $this->author = new WP_User($this->_make_user('author')); 
    77        $this->post_ids = array(); 
    88        $this->meta_id = add_metadata( 'user', $this->author->ID, 'meta_key', 'meta_value' ); 
Note: See TracChangeset for help on using the changeset viewer.