Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/restoreRevision.php
- Timestamp:
- 09/02/2020 12:35:36 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/restoreRevision.php
r47122 r48937 31 31 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'username', 'password', $this->revision_id ) ); 32 32 $this->assertIXRError( $result ); 33 $this->assert Equals( 403, $result->code );33 $this->assertSame( 403, $result->code ); 34 34 } 35 35 … … 39 39 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'subscriber', 'subscriber', $this->revision_id ) ); 40 40 $this->assertIXRError( $result ); 41 $this->assert Equals( 401, $result->code );41 $this->assertSame( 401, $result->code ); 42 42 } 43 43 … … 54 54 $result = $this->myxmlrpcserver->wp_restoreRevision( array( 1, 'editor', 'editor', $this->revision_id ) ); 55 55 $this->assertTrue( $result ); 56 $this->assert Equals( 'edit2', get_post( $this->post_id )->post_content );56 $this->assertSame( 'edit2', get_post( $this->post_id )->post_content ); 57 57 } 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.