Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/getUser.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/getUser.php
r51587 r52010 8 8 protected $administrator_id; 9 9 10 function set_up() {10 public function set_up() { 11 11 parent::set_up(); 12 12 … … 18 18 } 19 19 20 function test_invalid_username_password() {20 public function test_invalid_username_password() { 21 21 $result = $this->myxmlrpcserver->wp_getUser( array( 1, 'username', 'password', 1 ) ); 22 22 $this->assertIXRError( $result ); … … 24 24 } 25 25 26 function test_invalid_user() {26 public function test_invalid_user() { 27 27 $result = $this->myxmlrpcserver->wp_getUser( array( 1, 'administrator', 'administrator', 34902348908234 ) ); 28 28 $this->assertIXRError( $result ); … … 30 30 } 31 31 32 function test_incapable_user() {32 public function test_incapable_user() { 33 33 $this->make_user_by_role( 'subscriber' ); 34 34 $editor_id = $this->make_user_by_role( 'editor' ); … … 39 39 } 40 40 41 function test_subscriber_self() {41 public function test_subscriber_self() { 42 42 $subscriber_id = $this->make_user_by_role( 'subscriber' ); 43 43 … … 47 47 } 48 48 49 function test_valid_user() {49 public function test_valid_user() { 50 50 $registered_date = strtotime( '-1 day' ); 51 51 $user_data = array( … … 102 102 } 103 103 104 function test_no_fields() {104 public function test_no_fields() { 105 105 $editor_id = $this->make_user_by_role( 'editor' ); 106 106 … … 113 113 } 114 114 115 function test_basic_fields() {115 public function test_basic_fields() { 116 116 $editor_id = $this->make_user_by_role( 'editor' ); 117 117 … … 127 127 } 128 128 129 function test_arbitrary_fields() {129 public function test_arbitrary_fields() { 130 130 $editor_id = $this->make_user_by_role( 'editor' ); 131 131
Note: See TracChangeset
for help on using the changeset viewer.