Make WordPress Core

Changeset 1252 in tests

Timestamp:
04/01/2013 10:08:56 PM (11 years 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( , $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( , $result );
    4646    }
    4747
     
    5858
    5959        $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) );
    60         $this->assertCount( 0, $result );
     60        $this->assertCount( , $result );
    6161    }
    6262
Note: See TracChangeset for help on using the changeset viewer.