Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
- Timestamp:
- 11/04/2021 03:22:47 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPostType.php
r51568 r52010 8 8 public $cpt_args; 9 9 10 function set_up() {10 public function set_up() { 11 11 parent::set_up(); 12 12 … … 24 24 } 25 25 26 function test_invalid_username_password() {26 public function test_invalid_username_password() { 27 27 $result = $this->myxmlrpcserver->wp_getPostType( array( 1, 'username', 'password', 'post' ) ); 28 28 $this->assertIXRError( $result ); … … 30 30 } 31 31 32 function test_invalid_post_type_name() {32 public function test_invalid_post_type_name() { 33 33 $this->make_user_by_role( 'editor' ); 34 34 … … 38 38 } 39 39 40 function test_valid_post_type_name() {40 public function test_valid_post_type_name() { 41 41 $this->make_user_by_role( 'editor' ); 42 42 … … 45 45 } 46 46 47 function test_incapable_user() {47 public function test_incapable_user() { 48 48 $this->make_user_by_role( 'subscriber' ); 49 49 … … 53 53 } 54 54 55 function test_valid_type() {55 public function test_valid_type() { 56 56 $this->make_user_by_role( 'editor' ); 57 57
Note: See TracChangeset
for help on using the changeset viewer.