Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/deletePost.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/deletePost.php
r46586 r48937 9 9 $result = $this->myxmlrpcserver->wp_deletePost( array( 1, 'username', 'password', 0 ) ); 10 10 $this->assertIXRError( $result ); 11 $this->assert Equals( 403, $result->code );11 $this->assertSame( 403, $result->code ); 12 12 } 13 13 … … 17 17 $result = $this->myxmlrpcserver->wp_deletePost( array( 1, 'editor', 'editor', 340982340 ) ); 18 18 $this->assertIXRError( $result ); 19 $this->assert Equals( 404, $result->code );19 $this->assertSame( 404, $result->code ); 20 20 } 21 21 … … 26 26 $result = $this->myxmlrpcserver->wp_deletePost( array( 1, 'subscriber', 'subscriber', $post_id ) ); 27 27 $this->assertIXRError( $result ); 28 $this->assert Equals( 401, $result->code );28 $this->assertSame( 401, $result->code ); 29 29 } 30 30 … … 38 38 39 39 $post = get_post( $post_id ); 40 $this->assert Equals( 'trash', $post->post_status );40 $this->assertSame( 'trash', $post->post_status ); 41 41 } 42 42 }
Note: See TracChangeset
for help on using the changeset viewer.