Changeset 1252 in tests
- Timestamp:
- 04/01/2013 10:08:56 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/xmlrpc/wp/getRevisions.php
r1162 r1252 37 37 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 38 38 $this->assertInternalType( 'array', $result ); 39 $this->assertCount( 0, $result );39 $this->assertCount( 1, $result ); 40 40 41 41 wp_insert_post( array( 'ID' => $post_id, 'post_content' => 'Edit 1' ) ); … … 43 43 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 44 44 $this->assertInternalType( 'array', $result ); 45 $this->assertCount( 1, $result );45 $this->assertCount( 2, $result ); 46 46 } 47 47 … … 58 58 59 59 $result = $this->myxmlrpcserver->wp_getRevisions( array( 1, 'editor', 'editor', $post_id ) ); 60 $this->assertCount( 0, $result );60 $this->assertCount( 1, $result ); 61 61 } 62 62
Note: See TracChangeset
for help on using the changeset viewer.