Make WordPress Core


Ignore:
Timestamp:
07/21/2013 12:46:13 AM (13 years ago)
Author:
ryan
Message:

Update revision unit tests to reflect how initial revisions are now created.

see [24650] #24708

Props adamsilverstein

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/xmlrpc/wp/getRevisions.php

    r1252 r1315  
    3434
    3535        $post_id = $this->factory->post->create();
     36        wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 1' ) ); // Create the initial revision
    3637
    3738        $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) );
     
    3940        $this->assertCount( 1, $result );
    4041
    41         wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 1' ) );
     42        wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 2' ) );
    4243
    4344        $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) );
Note: See TracChangeset for help on using the changeset viewer.