Changeset 48937 for trunk/tests/phpunit/tests/xmlrpc/wp/getPage.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/getPage.php
r47122 r48937 26 26 $result = $this->myxmlrpcserver->wp_getPage( array( 1, self::$post_id, 'username', 'password' ) ); 27 27 $this->assertIXRError( $result ); 28 $this->assert Equals( 403, $result->code );28 $this->assertSame( 403, $result->code ); 29 29 } 30 30 … … 37 37 $result = $this->myxmlrpcserver->wp_getPage( array( 1, 9999, 'editor', 'editor' ) ); 38 38 $this->assertIXRError( $result ); 39 $this->assert Equals( 404, $result->code );39 $this->assertSame( 404, $result->code ); 40 40 } 41 41 … … 74 74 // Check expected values. 75 75 $this->assertStringMatchesFormat( '%d', $result['userid'] ); 76 $this->assert Equals( 'future', $result['page_status'] );77 $this->assert Equals( $post_data->post_title, $result['title'] );78 $this->assert Equals( url_to_postid( $result['link'] ), self::$post_id );79 $this->assert Equals( $post_data->post_excerpt, $result['excerpt'] );76 $this->assertSame( 'future', $result['page_status'] ); 77 $this->assertSame( $post_data->post_title, $result['title'] ); 78 $this->assertSame( url_to_postid( $result['link'] ), self::$post_id ); 79 $this->assertSame( $post_data->post_excerpt, $result['excerpt'] ); 80 80 $this->assertStringMatchesFormat( '%d', $result['wp_author_id'] ); 81 81 } … … 94 94 $date_gmt = strtotime( get_gmt_from_date( mysql2date( 'Y-m-d H:i:s', $post_data->post_date, false ), 'Ymd\TH:i:s' ) ); 95 95 96 $this->assert Equals( strtotime( $post_data->post_date ), $result['dateCreated']->getTimestamp() );97 $this->assert Equals( $date_gmt, $result['date_created_gmt']->getTimestamp() );96 $this->assertSame( strtotime( $post_data->post_date ), $result['dateCreated']->getTimestamp() ); 97 $this->assertSame( $date_gmt, $result['date_created_gmt']->getTimestamp() ); 98 98 } 99 99 }
Note: See TracChangeset
for help on using the changeset viewer.