Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/getComments.php
- Timestamp:
- 09/02/2020 12:35:36 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getComments.php
r47122 r48937 10 10 $result = $this->myxmlrpcserver->wp_getComments( array( 1, 'username', 'password', array() ) ); 11 11 $this->assertIXRError( $result ); 12 $this->assert Equals( 403, $result->code );12 $this->assertSame( 403, $result->code ); 13 13 } 14 14 … … 18 18 $result = $this->myxmlrpcserver->wp_getComments( array( 1, 'contributor', 'contributor', array() ) ); 19 19 $this->assertIXRError( $result ); 20 $this->assert Equals( 401, $result->code );20 $this->assertSame( 401, $result->code ); 21 21 } 22 22 … … 32 32 foreach ( $results as $result ) { 33 33 $comment = get_comment( $result['comment_id'], ARRAY_A ); 34 $this->assert Equals( $comment['comment_post_ID'], $result['post_id'] );34 $this->assertSame( $comment['comment_post_ID'], $result['post_id'] ); 35 35 } 36 36 } … … 135 135 $result = $this->myxmlrpcserver->wp_getComments( array( 1, 'contributor', 'contributor' ) ); 136 136 $this->assertIXRError( $result ); 137 $this->assert Equals( 401, $result->code );137 $this->assertSame( 401, $result->code ); 138 138 } 139 139
Note: See TracChangeset
for help on using the changeset viewer.