Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php
- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPosts.php
r51367 r52010 6 6 class Tests_XMLRPC_wp_getPosts extends WP_XMLRPC_UnitTestCase { 7 7 8 function test_invalid_username_password() {8 public function test_invalid_username_password() { 9 9 $result = $this->myxmlrpcserver->wp_getPosts( array( 1, 'username', 'password' ) ); 10 10 $this->assertIXRError( $result ); … … 15 15 * @ticket 20991 16 16 */ 17 function test_incapable_user() {17 public function test_incapable_user() { 18 18 $this->make_user_by_role( 'subscriber' ); 19 19 … … 28 28 } 29 29 30 function test_capable_user() {30 public function test_capable_user() { 31 31 $this->make_user_by_role( 'editor' ); 32 32 … … 35 35 } 36 36 37 function test_invalid_post_type() {37 public function test_invalid_post_type() { 38 38 $this->make_user_by_role( 'editor' ); 39 39 … … 43 43 } 44 44 45 function test_filters() {45 public function test_filters() { 46 46 $this->make_user_by_role( 'editor' ); 47 47 … … 124 124 } 125 125 126 function test_fields() {126 public function test_fields() { 127 127 $this->make_user_by_role( 'editor' ); 128 128 self::factory()->post->create(); … … 150 150 * @ticket 21623 151 151 */ 152 function test_search() {152 public function test_search() { 153 153 $this->make_user_by_role( 'editor' ); 154 154
Note: See TracChangeset
for help on using the changeset viewer.