- Timestamp:
- 07/05/2021 05:21:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/selective-refresh.php
r48939 r51331 72 72 */ 73 73 function test_partials() { 74 $this->assertI nternalType( 'array',$this->selective_refresh->partials() );74 $this->assertIsArray( $this->selective_refresh->partials() ); 75 75 } 76 76 … … 164 164 $this->assertTrue( (bool) preg_match( '/_customizePartialRefreshExports = ({.+})/s', $html, $matches ) ); 165 165 $exported_data = json_decode( $matches[1], true ); 166 $this->assertI nternalType( 'array',$exported_data );166 $this->assertIsArray( $exported_data ); 167 167 $this->assertArrayHasKey( 'partials', $exported_data ); 168 $this->assertI nternalType( 'array',$exported_data['partials'] );168 $this->assertIsArray( $exported_data['partials'] ); 169 169 $this->assertArrayHasKey( 'blogname', $exported_data['partials'] ); 170 170 $this->assertArrayNotHasKey( 'top_secret_message', $exported_data['partials'] ); … … 209 209 function filter_customize_dynamic_partial_args( $partial_args, $partial_id ) { 210 210 $this->assertTrue( false === $partial_args || is_array( $partial_args ) ); 211 $this->assertI nternalType( 'string',$partial_id );211 $this->assertIsString( $partial_id ); 212 212 213 213 if ( preg_match( '/^recognized/', $partial_id ) ) { … … 231 231 */ 232 232 function filter_customize_dynamic_partial_class( $partial_class, $partial_id, $partial_args ) { 233 $this->assertI nternalType( 'array',$partial_args );234 $this->assertI nternalType( 'string',$partial_id );235 $this->assertI nternalType( 'string',$partial_class );233 $this->assertIsArray( $partial_args ); 234 $this->assertIsString( $partial_id ); 235 $this->assertIsString( $partial_class ); 236 236 237 237 if ( 'recognized-class' === $partial_id ) {
Note: See TracChangeset
for help on using the changeset viewer.