WordPress.org

Make WordPress Core

Changeset 1252 in tests


Ignore:
Timestamp:
04/01/13 22:08:56 (13 months ago)
Author:
kurtpayne
Message:

We now store a revision for the current version, so these counts must be bumped. see #16215.

This brings the XMLRPC revisions tests in line with the posts revisions tests in [UT1251].

File:
1 edited

Legend:

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

    r1162 r1252  
    3737        $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 
    3838        $this->assertInternalType( 'array', $result ); 
    39         $this->assertCount( 0, $result ); 
     39        $this->assertCount( 1, $result ); 
    4040 
    4141        wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 1' ) ); 
     
    4343        $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 
    4444        $this->assertInternalType( 'array', $result ); 
    45         $this->assertCount( 1, $result ); 
     45        $this->assertCount( 2, $result ); 
    4646    } 
    4747 
     
    5858 
    5959        $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 
    60         $this->assertCount( 0, $result ); 
     60        $this->assertCount( 1, $result ); 
    6161    } 
    6262 
Note: See TracChangeset for help on using the changeset viewer.