Changeset 51331 for trunk/tests/phpunit/tests/widgets.php
- Timestamp:
- 07/05/2021 05:21:53 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/widgets.php
r51140 r51331 625 625 $this->assertArrayHasKey( 2, $option_value ); 626 626 $instance = $option_value[2]; 627 $this->assertI nternalType( 'array',$instance );627 $this->assertIsArray( $instance ); 628 628 $this->assertArrayHasKey( 'content', $instance ); 629 629 unset( $option_value['_multiwidget'] ); … … 876 876 $result = retrieve_widgets( true ); 877 877 878 $this->assertI nternalType( 'array',$result );878 $this->assertIsArray( $result ); 879 879 $this->assertSame( $result, $sidebars_widgets ); 880 880 881 881 foreach ( $sidebars_widgets as $widgets ) { 882 $this->assertI nternalType( 'array',$widgets );882 $this->assertIsArray( $widgets ); 883 883 } 884 884 … … 925 925 926 926 // $sidebars_widgets matches registered sidebars. 927 $this->assertI nternalType( 'array',$result );927 $this->assertIsArray( $result ); 928 928 $this->assertSame( $result, $sidebars_widgets ); 929 929 930 930 foreach ( $sidebars_widgets as $widgets ) { 931 $this->assertI nternalType( 'array',$widgets );931 $this->assertIsArray( $widgets ); 932 932 } 933 933 … … 964 964 965 965 $_wp_sidebars_widgets = array(); 966 $this->assertI nternalType( 'array',$result );966 $this->assertIsArray( $result ); 967 967 $this->assertSame( $result, $sidebars_widgets ); 968 968 969 969 foreach ( $sidebars_widgets as $widgets ) { 970 $this->assertI nternalType( 'array',$widgets );970 $this->assertIsArray( $widgets ); 971 971 } 972 972 … … 1006 1006 1007 1007 $_wp_sidebars_widgets = array(); 1008 $this->assertI nternalType( 'array',$result );1008 $this->assertIsArray( $result ); 1009 1009 $this->assertSame( $result, $sidebars_widgets ); 1010 1010 1011 1011 foreach ( $sidebars_widgets as $widgets ) { 1012 $this->assertI nternalType( 'array',$widgets );1012 $this->assertIsArray( $widgets ); 1013 1013 } 1014 1014 … … 1057 1057 1058 1058 $_wp_sidebars_widgets = array(); 1059 $this->assertI nternalType( 'array',$result );1059 $this->assertIsArray( $result ); 1060 1060 $this->assertSame( $result, $sidebars_widgets ); 1061 1061 1062 1062 foreach ( $sidebars_widgets as $widgets ) { 1063 $this->assertI nternalType( 'array',$widgets );1063 $this->assertIsArray( $widgets ); 1064 1064 } 1065 1065 … … 1125 1125 retrieve_widgets(); 1126 1126 1127 $this->assertI nternalType( 'array',$sidebars_widgets );1127 $this->assertIsArray( $sidebars_widgets ); 1128 1128 1129 1129 foreach ( $sidebars_widgets as $widgets ) { 1130 $this->assertI nternalType( 'array',$widgets );1130 $this->assertIsArray( $widgets ); 1131 1131 } 1132 1132 … … 1158 1158 $filtered_widgets = _wp_remove_unregistered_widgets( $widgets, $allowed_widgets ); 1159 1159 1160 $this->assertI nternalType( 'array',$filtered_widgets );1160 $this->assertIsArray( $filtered_widgets ); 1161 1161 $this->assertArrayHasKey( 'fantasy', $filtered_widgets ); 1162 1162 $this->assertEmpty( $filtered_widgets['fantasy'] ); 1163 1163 $this->assertArrayHasKey( 'array_version', $filtered_widgets ); 1164 1164 $this->assertSame( 3, $filtered_widgets['array_version'] ); 1165 $this->assertI nternalType( 'integer',$filtered_widgets['array_version'] );1165 $this->assertIsInt( $filtered_widgets['array_version'] ); 1166 1166 } 1167 1167
Note: See TracChangeset
for help on using the changeset viewer.