Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/wp/getPage.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/xmlrpc/wp/getPage.php
r48937 r51331 47 47 48 48 // Check data types. 49 $this->assertI nternalType( 'string',$result['userid'] );50 $this->assertI nternalType( 'int',$result['page_id'] );51 $this->assertI nternalType( 'string',$result['page_status'] );52 $this->assertI nternalType( 'string',$result['description'] );53 $this->assertI nternalType( 'string',$result['title'] );54 $this->assertI nternalType( 'string',$result['link'] );55 $this->assertI nternalType( 'string',$result['permaLink'] );56 $this->assertI nternalType( 'array',$result['categories'] );57 $this->assertI nternalType( 'string',$result['excerpt'] );58 $this->assertI nternalType( 'string',$result['text_more'] );59 $this->assertI nternalType( 'int',$result['mt_allow_comments'] );60 $this->assertI nternalType( 'int',$result['mt_allow_pings'] );61 $this->assertI nternalType( 'string',$result['wp_slug'] );62 $this->assertI nternalType( 'string',$result['wp_password'] );63 $this->assertI nternalType( 'string',$result['wp_author'] );64 $this->assertI nternalType( 'int',$result['wp_page_parent_id'] );65 $this->assertI nternalType( 'string',$result['wp_page_parent_title'] );66 $this->assertI nternalType( 'int',$result['wp_page_order'] );67 $this->assertI nternalType( 'string',$result['wp_author_id'] );68 $this->assertI nternalType( 'string',$result['wp_author_display_name'] );69 $this->assertI nternalType( 'array',$result['custom_fields'] );70 $this->assertI nternalType( 'string',$result['wp_page_template'] );49 $this->assertIsString( $result['userid'] ); 50 $this->assertIsInt( $result['page_id'] ); 51 $this->assertIsString( $result['page_status'] ); 52 $this->assertIsString( $result['description'] ); 53 $this->assertIsString( $result['title'] ); 54 $this->assertIsString( $result['link'] ); 55 $this->assertIsString( $result['permaLink'] ); 56 $this->assertIsArray( $result['categories'] ); 57 $this->assertIsString( $result['excerpt'] ); 58 $this->assertIsString( $result['text_more'] ); 59 $this->assertIsInt( $result['mt_allow_comments'] ); 60 $this->assertIsInt( $result['mt_allow_pings'] ); 61 $this->assertIsString( $result['wp_slug'] ); 62 $this->assertIsString( $result['wp_password'] ); 63 $this->assertIsString( $result['wp_author'] ); 64 $this->assertIsInt( $result['wp_page_parent_id'] ); 65 $this->assertIsString( $result['wp_page_parent_title'] ); 66 $this->assertIsInt( $result['wp_page_order'] ); 67 $this->assertIsString( $result['wp_author_id'] ); 68 $this->assertIsString( $result['wp_author_display_name'] ); 69 $this->assertIsArray( $result['custom_fields'] ); 70 $this->assertIsString( $result['wp_page_template'] ); 71 71 72 72 $post_data = get_post( self::$post_id );
Note: See TracChangeset
for help on using the changeset viewer.