Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/editComment.php
- Timestamp:
- 09/02/2020 12:35:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/editComment.php
r46586 r48937 60 60 $result = $this->myxmlrpcserver->wp_editComment( array( 1, 'author', 'author', $comment_id, array( 'status' => 'hold' ) ) ); 61 61 $this->assertIXRError( $result ); 62 $this->assert Equals( 403, $result->code );63 $this->assert Equals( __( 'Sorry, you are not allowed to moderate or edit this comment.' ), $result->message );62 $this->assertSame( 403, $result->code ); 63 $this->assertSame( __( 'Sorry, you are not allowed to moderate or edit this comment.' ), $result->message ); 64 64 } 65 65 … … 78 78 $comment_id = wp_insert_comment( $comment_data ); 79 79 80 $this->assert Equals( '1', get_comment( $comment_id )->comment_approved );80 $this->assertSame( '1', get_comment( $comment_id )->comment_approved ); 81 81 82 82 $this->myxmlrpcserver->wp_editComment( … … 92 92 ); 93 93 94 $this->assert Equals( 'trash', get_comment( $comment_id )->comment_approved );94 $this->assertSame( 'trash', get_comment( $comment_id )->comment_approved ); 95 95 } 96 96 }
Note: See TracChangeset
for help on using the changeset viewer.