Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/getComments.php
- Timestamp:
- 11/04/2021 03:22:47 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getComments.php
r51331 r52010 7 7 public $post_id; 8 8 9 function test_invalid_username_password() {9 public function test_invalid_username_password() { 10 10 $result = $this->myxmlrpcserver->wp_getComments( array( 1, 'username', 'password', array() ) ); 11 11 $this->assertIXRError( $result ); … … 13 13 } 14 14 15 function test_incapable_user() {15 public function test_incapable_user() { 16 16 $this->make_user_by_role( 'contributor' ); 17 17 … … 21 21 } 22 22 23 function test_capable_user() {23 public function test_capable_user() { 24 24 $this->post_id = self::factory()->post->create(); 25 25 self::factory()->comment->create_post_comments( $this->post_id, 2 ); … … 36 36 } 37 37 38 function test_post_filter() {38 public function test_post_filter() { 39 39 $this->post_id = self::factory()->post->create(); 40 40 self::factory()->comment->create_post_comments( $this->post_id, 2 ); … … 59 59 } 60 60 61 function test_number_filter() {61 public function test_number_filter() { 62 62 $this->post_id = self::factory()->post->create(); 63 63 self::factory()->comment->create_post_comments( $this->post_id, 11 ); … … 95 95 } 96 96 97 function test_contributor_capabilities() {97 public function test_contributor_capabilities() { 98 98 $this->make_user_by_role( 'contributor' ); 99 99 $author_id = $this->make_user_by_role( 'author' ); … … 138 138 } 139 139 140 function test_author_capabilities() {140 public function test_author_capabilities() { 141 141 $author_id = $this->make_user_by_role( 'author' ); 142 142 $author_post_id = self::factory()->post->create( … … 230 230 } 231 231 232 function test_editor_capabilities() {232 public function test_editor_capabilities() { 233 233 $author_id = $this->make_user_by_role( 'author' ); 234 234 $author_post_id = self::factory()->post->create(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)