Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/getPost.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/getPost.php
r51587 r52010 10 10 public $post_custom_field; 11 11 12 function set_up() {12 public function set_up() { 13 13 parent::set_up(); 14 14 … … 29 29 } 30 30 31 function test_invalid_username_password() {31 public function test_invalid_username_password() { 32 32 $result = $this->myxmlrpcserver->wp_getPost( array( 1, 'username', 'password', 1 ) ); 33 33 $this->assertIXRError( $result ); … … 35 35 } 36 36 37 function test_valid_post() {37 public function test_valid_post() { 38 38 add_theme_support( 'post-thumbnails' ); 39 39 … … 80 80 } 81 81 82 function test_no_fields() {82 public function test_no_fields() { 83 83 $fields = array(); 84 84 $result = $this->myxmlrpcserver->wp_getPost( array( 1, 'author', 'author', $this->post_id, $fields ) ); … … 90 90 } 91 91 92 function test_default_fields() {92 public function test_default_fields() { 93 93 $result = $this->myxmlrpcserver->wp_getPost( array( 1, 'author', 'author', $this->post_id ) ); 94 94 $this->assertNotIXRError( $result ); … … 100 100 } 101 101 102 function test_date() {102 public function test_date() { 103 103 $fields = array( 'post' ); 104 104 $result = $this->myxmlrpcserver->wp_getPost( array( 1, 'author', 'author', $this->post_id, $fields ) ); … … 123 123 * @ticket 21308 124 124 */ 125 function test_valid_page() {125 public function test_valid_page() { 126 126 $this->make_user_by_role( 'editor' ); 127 127
Note: See TracChangeset
for help on using the changeset viewer.