Changeset 51331 for trunk/tests/phpunit/tests/customize/nav-menus.php
- Timestamp:
- 07/05/2021 05:21:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/customize/nav-menus.php
r49108 r51331 382 382 ); 383 383 $this->assertSame( $count + 1, $this->filter_count_customize_nav_menu_searched_items ); 384 $this->assertI nternalType( 'array',$results );384 $this->assertIsArray( $results ); 385 385 $this->assertCount( 3, $results ); 386 386 remove_filter( 'customize_nav_menu_searched_items', array( $this, 'filter_search' ), 10 ); … … 466 466 */ 467 467 function filter_search( $items, $args ) { 468 $this->assertI nternalType( 'array',$items );469 $this->assertI nternalType( 'array',$args );468 $this->assertIsArray( $items ); 469 $this->assertIsArray( $args ); 470 470 $this->assertArrayHasKey( 's', $args ); 471 471 $this->assertArrayHasKey( 'pagenum', $args ); … … 805 805 806 806 $args = apply_filters( 'customize_dynamic_partial_args', false, 'nav_menu_instance[68b329da9893e34099c7d8ad5cb9c940]' ); 807 $this->assertI nternalType( 'array',$args );807 $this->assertIsArray( $args ); 808 808 $this->assertSame( 'nav_menu_instance', $args['type'] ); 809 809 $this->assertSame( array( $this->wp_customize->nav_menus, 'render_nav_menu_partial' ), $args['render_callback'] ); … … 811 811 812 812 $args = apply_filters( 'customize_dynamic_partial_args', array( 'fallback_refresh' => false ), 'nav_menu_instance[4099c7d8ad5cb9c94068b329da9893e3]' ); 813 $this->assertI nternalType( 'array',$args );813 $this->assertIsArray( $args ); 814 814 $this->assertSame( 'nav_menu_instance', $args['type'] ); 815 815 $this->assertSame( array( $this->wp_customize->nav_menus, 'render_nav_menu_partial' ), $args['render_callback'] );
Note: See TracChangeset
for help on using the changeset viewer.