Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/getComment.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/getComment.php
r47122 r48937 37 37 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'username', 'password', self::$parent_comment_id ) ); 38 38 $this->assertIXRError( $result ); 39 $this->assert Equals( 403, $result->code );39 $this->assertSame( 403, $result->code ); 40 40 } 41 41 … … 45 45 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'contributor', 'contributor', self::$parent_comment_id ) ); 46 46 $this->assertIXRError( $result ); 47 $this->assert Equals( 403, $result->code );47 $this->assertSame( 403, $result->code ); 48 48 } 49 49 … … 77 77 $this->assertEquals( self::$parent_comment_id, $result['comment_id'] ); 78 78 $this->assertEquals( 0, $result['parent'] ); 79 $this->assert Equals( self::$parent_comment_data['comment_content'], $result['content'] );79 $this->assertSame( self::$parent_comment_data['comment_content'], $result['content'] ); 80 80 $this->assertEquals( self::$post_id, $result['post_id'] ); 81 $this->assert Equals( self::$parent_comment_data['comment_author'], $result['author'] );82 $this->assert Equals( self::$parent_comment_data['comment_author_url'], $result['author_url'] );83 $this->assert Equals( self::$parent_comment_data['comment_author_email'], $result['author_email'] );81 $this->assertSame( self::$parent_comment_data['comment_author'], $result['author'] ); 82 $this->assertSame( self::$parent_comment_data['comment_author_url'], $result['author_url'] ); 83 $this->assertSame( self::$parent_comment_data['comment_author_email'], $result['author_email'] ); 84 84 } 85 85 … … 99 99 $result = $this->myxmlrpcserver->wp_getComment( array( 1, 'editor', 'editor', 123456789 ) ); 100 100 $this->assertIXRError( $result ); 101 $this->assert Equals( 404, $result->code );101 $this->assertSame( 404, $result->code ); 102 102 } 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.