Changeset 52010 for trunk/tests/phpunit/tests/xmlrpc/wp/restoreRevision.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/restoreRevision.php
r51568 r52010 8 8 public $revision_id; 9 9 10 function set_up() {10 public function set_up() { 11 11 parent::set_up(); 12 12 … … 28 28 } 29 29 30 function test_invalid_username_password() {30 public function test_invalid_username_password() { 31 31 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'username', 'password', $this->revision_id ) ); 32 32 $this->assertIXRError( $result ); … … 34 34 } 35 35 36 function test_incapable_user() {36 public function test_incapable_user() { 37 37 $this->make_user_by_role( 'subscriber' ); 38 38 … … 42 42 } 43 43 44 function test_capable_user() {44 public function test_capable_user() { 45 45 $this->make_user_by_role( 'editor' ); 46 46 … … 49 49 } 50 50 51 function test_revision_restored() {51 public function test_revision_restored() { 52 52 $this->make_user_by_role( 'editor' ); 53 53
Note: See TracChangeset
for help on using the changeset viewer.