Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/getPost.php
r48937 r51331 53 53 54 54 // Check data types. 55 $this->assertI nternalType( 'string',$result['userid'] );56 $this->assertI nternalType( 'int',$result['postid'] );57 $this->assertI nternalType( 'string',$result['description'] );58 $this->assertI nternalType( 'string',$result['title'] );59 $this->assertI nternalType( 'string',$result['link'] );60 $this->assertI nternalType( 'string',$result['permaLink'] );61 $this->assertI nternalType( 'array',$result['categories'] );62 $this->assertI nternalType( 'string',$result['mt_excerpt'] );63 $this->assertI nternalType( 'string',$result['mt_text_more'] );64 $this->assertI nternalType( 'string',$result['wp_more_text'] );65 $this->assertI nternalType( 'int',$result['mt_allow_comments'] );66 $this->assertI nternalType( 'int',$result['mt_allow_pings'] );67 $this->assertI nternalType( 'string',$result['mt_keywords'] );68 $this->assertI nternalType( 'string',$result['wp_slug'] );69 $this->assertI nternalType( 'string',$result['wp_password'] );70 $this->assertI nternalType( 'string',$result['wp_author_id'] );71 $this->assertI nternalType( 'string',$result['wp_author_display_name'] );72 $this->assertI nternalType( 'string',$result['post_status'] );73 $this->assertI nternalType( 'array',$result['custom_fields'] );74 $this->assertI nternalType( 'string',$result['wp_post_format'] );75 $this->assertI nternalType( 'bool',$result['sticky'] );55 $this->assertIsString( $result['userid'] ); 56 $this->assertIsInt( $result['postid'] ); 57 $this->assertIsString( $result['description'] ); 58 $this->assertIsString( $result['title'] ); 59 $this->assertIsString( $result['link'] ); 60 $this->assertIsString( $result['permaLink'] ); 61 $this->assertIsArray( $result['categories'] ); 62 $this->assertIsString( $result['mt_excerpt'] ); 63 $this->assertIsString( $result['mt_text_more'] ); 64 $this->assertIsString( $result['wp_more_text'] ); 65 $this->assertIsInt( $result['mt_allow_comments'] ); 66 $this->assertIsInt( $result['mt_allow_pings'] ); 67 $this->assertIsString( $result['mt_keywords'] ); 68 $this->assertIsString( $result['wp_slug'] ); 69 $this->assertIsString( $result['wp_password'] ); 70 $this->assertIsString( $result['wp_author_id'] ); 71 $this->assertIsString( $result['wp_author_display_name'] ); 72 $this->assertIsString( $result['post_status'] ); 73 $this->assertIsArray( $result['custom_fields'] ); 74 $this->assertIsString( $result['wp_post_format'] ); 75 $this->assertIsBool( $result['sticky'] ); 76 76 77 77 $post_data = get_post( self::$post_id ); … … 103 103 $this->assertNotIXRError( $result ); 104 104 105 $this->assertI nternalType( 'int',$result['wp_post_thumbnail'] );105 $this->assertIsInt( $result['wp_post_thumbnail'] ); 106 106 $this->assertSame( $attachment_id, $result['wp_post_thumbnail'] ); 107 107
Note: See TracChangeset
for help on using the changeset viewer.