Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/mw/getRecentPosts.php
r48937 r51331 59 59 60 60 // Check data types. 61 $this->assertI nternalType( 'string',$result['userid'] );62 $this->assertI nternalType( 'string',$result['postid'] );63 $this->assertI nternalType( 'string',$result['description'] );64 $this->assertI nternalType( 'string',$result['title'] );65 $this->assertI nternalType( 'string',$result['link'] );66 $this->assertI nternalType( 'string',$result['permaLink'] );67 $this->assertI nternalType( 'array',$result['categories'] );68 $this->assertI nternalType( 'string',$result['mt_excerpt'] );69 $this->assertI nternalType( 'string',$result['mt_text_more'] );70 $this->assertI nternalType( 'string',$result['wp_more_text'] );71 $this->assertI nternalType( 'int',$result['mt_allow_comments'] );72 $this->assertI nternalType( 'int',$result['mt_allow_pings'] );73 $this->assertI nternalType( 'string',$result['mt_keywords'] );74 $this->assertI nternalType( 'string',$result['wp_slug'] );75 $this->assertI nternalType( 'string',$result['wp_password'] );76 $this->assertI nternalType( 'string',$result['wp_author_id'] );77 $this->assertI nternalType( 'string',$result['wp_author_display_name'] );78 $this->assertI nternalType( 'string',$result['post_status'] );79 $this->assertI nternalType( 'array',$result['custom_fields'] );80 $this->assertI nternalType( 'string',$result['wp_post_format'] );61 $this->assertIsString( $result['userid'] ); 62 $this->assertIsString( $result['postid'] ); 63 $this->assertIsString( $result['description'] ); 64 $this->assertIsString( $result['title'] ); 65 $this->assertIsString( $result['link'] ); 66 $this->assertIsString( $result['permaLink'] ); 67 $this->assertIsArray( $result['categories'] ); 68 $this->assertIsString( $result['mt_excerpt'] ); 69 $this->assertIsString( $result['mt_text_more'] ); 70 $this->assertIsString( $result['wp_more_text'] ); 71 $this->assertIsInt( $result['mt_allow_comments'] ); 72 $this->assertIsInt( $result['mt_allow_pings'] ); 73 $this->assertIsString( $result['mt_keywords'] ); 74 $this->assertIsString( $result['wp_slug'] ); 75 $this->assertIsString( $result['wp_password'] ); 76 $this->assertIsString( $result['wp_author_id'] ); 77 $this->assertIsString( $result['wp_author_display_name'] ); 78 $this->assertIsString( $result['post_status'] ); 79 $this->assertIsArray( $result['custom_fields'] ); 80 $this->assertIsString( $result['wp_post_format'] ); 81 81 82 82 // Check expected values. … … 107 107 108 108 foreach ( $results as $result ) { 109 $this->assertI nternalType( 'string',$result['wp_post_thumbnail'] );109 $this->assertIsString( $result['wp_post_thumbnail'] ); 110 110 $this->assertStringMatchesFormat( '%d', $result['wp_post_thumbnail'] ); 111 111
Note: See TracChangeset
for help on using the changeset viewer.