Changeset 51331 for trunk/tests/phpunit/tests/oembed/controller.php
- Timestamp:
- 07/05/2021 05:21:53 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/oembed/controller.php
r50463 r51331 170 170 $this->fail( 'Unexpected type for $data.' ); 171 171 } 172 $this->assertI nternalType( 'string',$url );173 $this->assertI nternalType( 'array',$args );172 $this->assertIsString( $url ); 173 $this->assertIsArray( $args ); 174 174 $this->oembed_result_filter_count++; 175 175 return $data; … … 300 300 $data = $response->get_data(); 301 301 302 $this->assertI nternalType( 'array',$data );302 $this->assertIsArray( $data ); 303 303 $this->assertNotEmpty( $data ); 304 304 } … … 324 324 $data = $response->get_data(); 325 325 326 $this->assertI nternalType( 'array',$data );326 $this->assertIsArray( $data ); 327 327 $this->assertNotEmpty( $data ); 328 328 … … 367 367 $data = $response->get_data(); 368 368 369 $this->assertI nternalType( 'array',$data );369 $this->assertIsArray( $data ); 370 370 $this->assertNotEmpty( $data ); 371 371 … … 412 412 $data = $response->get_data(); 413 413 414 $this->assertI nternalType( 'array',$data );414 $this->assertIsArray( $data ); 415 415 $this->assertNotEmpty( $data ); 416 416 … … 455 455 $data = $response->get_data(); 456 456 457 $this->assertI nternalType( 'array',$data );457 $this->assertIsArray( $data ); 458 458 $this->assertNotEmpty( $data ); 459 459 … … 604 604 605 605 $this->assertNotEmpty( $data ); 606 $this->assertI nternalType( 'object',$data );606 $this->assertIsObject( $data ); 607 607 $this->assertSame( 'YouTube', $data->provider_name ); 608 608 $this->assertSame( 'https://i.ytimg.com/vi/' . self::YOUTUBE_VIDEO_ID . '/hqdefault.jpg', $data->thumbnail_url ); … … 631 631 632 632 $this->assertNotEmpty( $data ); 633 $this->assertI nternalType( 'object',$data );634 $this->assertI nternalType( 'string',$data->html );635 $this->assertI nternalType( 'array',$data->scripts );633 $this->assertIsObject( $data ); 634 $this->assertIsString( $data->html ); 635 $this->assertIsArray( $data->scripts ); 636 636 } 637 637 … … 744 744 $data = $response->get_data(); 745 745 746 $this->assertI nternalType( 'object',$data );746 $this->assertIsObject( $data ); 747 747 748 748 $data = (array) $data; … … 787 787 788 788 $this->assertSame( 1, $this->oembed_result_filter_count ); 789 $this->assertI nternalType( 'object',$data );789 $this->assertIsObject( $data ); 790 790 $this->assertSame( 'Untrusted', $data->provider_name ); 791 791 $this->assertSame( self::UNTRUSTED_PROVIDER_URL, $data->provider_url ); … … 810 810 811 811 $this->assertSame( 1, $this->oembed_result_filter_count ); 812 $this->assertI nternalType( 'object',$data );812 $this->assertIsObject( $data ); 813 813 814 814 $this->assertStringStartsWith( '<b>Unfiltered</b>', $data->html );
Note: See TracChangeset
for help on using the changeset viewer.