Changeset 35154
- Timestamp:
- 10/14/2015 02:38:30 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getComments.php
r34570 r35154 7 7 var $post_id; 8 8 9 function setUp() {10 parent::setUp();11 12 $this->post_id = $this->factory->post->create();13 $this->factory->comment->create_post_comments( $this->post_id, 15 );14 }15 16 9 function test_invalid_username_password() { 17 10 $result = $this->myxmlrpcserver->wp_getComments( array( 1, 'username', 'password', array() ) ); … … 29 22 30 23 function test_capable_user() { 24 $this->post_id = $this->factory->post->create(); 25 $this->factory->comment->create_post_comments( $this->post_id, 2 ); 26 31 27 $this->make_user_by_role( 'editor' ); 32 28 … … 41 37 42 38 function test_post_filter() { 39 $this->post_id = $this->factory->post->create(); 40 $this->factory->comment->create_post_comments( $this->post_id, 2 ); 41 43 42 $this->make_user_by_role( 'editor' ); 44 43 … … 54 53 55 54 function test_number_filter() { 55 $this->post_id = $this->factory->post->create(); 56 $this->factory->comment->create_post_comments( $this->post_id, 11 ); 57 56 58 $this->make_user_by_role( 'editor' ); 57 59
Note: See TracChangeset
for help on using the changeset viewer.