Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/deletePost.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/deletePost.php
r48937 r52010 6 6 class Tests_XMLRPC_wp_deletePost 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_deletePost( array( 1, 'username', 'password', 0 ) ); 10 10 $this->assertIXRError( $result ); … … 12 12 } 13 13 14 function test_invalid_post() {14 public function test_invalid_post() { 15 15 $this->make_user_by_role( 'editor' ); 16 16 … … 20 20 } 21 21 22 function test_incapable_user() {22 public function test_incapable_user() { 23 23 $this->make_user_by_role( 'subscriber' ); 24 24 $post_id = self::factory()->post->create(); … … 29 29 } 30 30 31 function test_post_deleted() {31 public function test_post_deleted() { 32 32 $this->make_user_by_role( 'editor' ); 33 33 $post_id = self::factory()->post->create();
Note: See TracChangeset
for help on using the changeset viewer.