- 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-post-meta-fields.php
r50610 r51331 291 291 $meta = (array) $data['meta']; 292 292 $this->assertArrayHasKey( 'test_multi', $meta ); 293 $this->assertI nternalType( 'array',$meta['test_multi'] );293 $this->assertIsArray( $meta['test_multi'] ); 294 294 $this->assertContains( 'value1', $meta['test_multi'] ); 295 295 … … 396 396 397 397 $this->assertArrayHasKey( 'test_string', $meta ); 398 $this->assertI nternalType( 'string',$meta['test_string'] );398 $this->assertIsString( $meta['test_string'] ); 399 399 $this->assertSame( '42', $meta['test_string'] ); 400 400 401 401 $this->assertArrayHasKey( 'test_number', $meta ); 402 $this->assertI nternalType( 'float',$meta['test_number'] );402 $this->assertIsFloat( $meta['test_number'] ); 403 403 $this->assertSame( 42.0, $meta['test_number'] ); 404 404 405 405 $this->assertArrayHasKey( 'test_bool', $meta ); 406 $this->assertI nternalType( 'boolean',$meta['test_bool'] );406 $this->assertIsBool( $meta['test_bool'] ); 407 407 $this->assertTrue( $meta['test_bool'] ); 408 408 } … … 1273 1273 1274 1274 $this->assertArrayHasKey( 'meta', $data ); 1275 $this->assertI nternalType( 'array',$data['meta'] );1275 $this->assertIsArray( $data['meta'] ); 1276 1276 1277 1277 if ( $in_post_type ) { … … 1339 1339 $data = $response->get_data(); 1340 1340 $this->assertArrayHasKey( 'meta', $data ); 1341 $this->assertI nternalType( 'array',$data['meta'] );1341 $this->assertIsArray( $data['meta'] ); 1342 1342 1343 1343 if ( $in_post_type ) {
Note: See TracChangeset
for help on using the changeset viewer.