Changeset 51331 for trunk/tests/phpunit/tests/xmlrpc/wp/getTerm.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/getTerm.php
r48937 r51331 80 80 81 81 // Check data types. 82 $this->assertI nternalType( 'string',$result['name'] );83 $this->assertI nternalType( 'string',$result['slug'] );84 $this->assertI nternalType( 'string',$result['taxonomy'] );85 $this->assertI nternalType( 'string',$result['description'] );86 $this->assertI nternalType( 'int',$result['count'] );82 $this->assertIsString( $result['name'] ); 83 $this->assertIsString( $result['slug'] ); 84 $this->assertIsString( $result['taxonomy'] ); 85 $this->assertIsString( $result['description'] ); 86 $this->assertIsInt( $result['count'] ); 87 87 88 88 // We expect all ID's to be strings not integers so we don't return something larger than an XMLRPC integer can describe. … … 122 122 $this->assertNotIXRError( $result ); 123 123 124 $this->assertI nternalType( 'array',$result['custom_fields'] );124 $this->assertIsArray( $result['custom_fields'] ); 125 125 $term_meta = get_term_meta( self::$term_id, '', true ); 126 126 $this->assertSame( $term_meta['foo'][0], $result['custom_fields'][0]['value'] );
Note: See TracChangeset
for help on using the changeset viewer.