- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-term-meta-fields.php
r50793 r51331 238 238 $meta = (array) $data['meta']; 239 239 $this->assertArrayHasKey( 'test_multi', $meta ); 240 $this->assertI nternalType( 'array',$meta['test_multi'] );240 $this->assertIsArray( $meta['test_multi'] ); 241 241 $this->assertContains( 'value1', $meta['test_multi'] ); 242 242 … … 343 343 344 344 $this->assertArrayHasKey( 'test_string', $meta ); 345 $this->assertI nternalType( 'string',$meta['test_string'] );345 $this->assertIsString( $meta['test_string'] ); 346 346 $this->assertSame( '42', $meta['test_string'] ); 347 347 348 348 $this->assertArrayHasKey( 'test_number', $meta ); 349 $this->assertI nternalType( 'float',$meta['test_number'] );349 $this->assertIsFloat( $meta['test_number'] ); 350 350 $this->assertSame( 42.0, $meta['test_number'] ); 351 351 352 352 $this->assertArrayHasKey( 'test_bool', $meta ); 353 $this->assertI nternalType( 'boolean',$meta['test_bool'] );353 $this->assertIsBool( $meta['test_bool'] ); 354 354 $this->assertTrue( $meta['test_bool'] ); 355 355 } … … 1158 1158 1159 1159 $this->assertArrayHasKey( 'meta', $data ); 1160 $this->assertI nternalType( 'array',$data['meta'] );1160 $this->assertIsArray( $data['meta'] ); 1161 1161 1162 1162 if ( $in_taxonomy ) { … … 1222 1222 $data = $response->get_data(); 1223 1223 $this->assertArrayHasKey( 'meta', $data ); 1224 $this->assertI nternalType( 'array',$data['meta'] );1224 $this->assertIsArray( $data['meta'] ); 1225 1225 1226 1226 if ( $in_taxonomy ) {
Note: See TracChangeset
for help on using the changeset viewer.