WordPress.org

Make WordPress Core

Changeset 1150 in tests


Ignore:
Timestamp:
11/21/12 16:06:17 (17 months ago)
Author:
westi
Message:

Update the tests in [1147] to include real post_IDs for the cases where we are updating an existing post. See #WP22417.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/admin/includesPost.php

    r1148 r1150  
    4747        // Edit Draft Post for another user 
    4848        $_post_data = array(); 
     49        $_post_data['post_ID'] = $this->factory->post->create( array( 'post_author' => $editor_id ) ); 
    4950        $_post_data['post_author'] = $editor_id; 
    5051        $_post_data['post_type'] = 'post'; 
     
    101102        // Edit Draft Post for another user 
    102103        $_post_data = array(); 
     104        $_post_data['post_ID'] = $this->factory->post->create( array( 'post_author' => $contributor_id ) ); 
    103105        $_post_data['post_author'] = $contributor_id; 
    104106        $_post_data['post_type'] = 'post'; 
Note: See TracChangeset for help on using the changeset viewer.