Changeset 54443 for trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
- Timestamp:
- 10/10/2022 02:52:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJsonResolver.php
r54402 r54443 77 77 * @ticket 52991 78 78 * @ticket 54336 79 * @ticket 56611 79 80 */ 80 81 public function test_translations_are_applied() { … … 119 120 ), 120 121 ), 122 'duotone' => array( 123 'theme' => array( 124 array( 125 'colors' => array( '#333333', '#aaaaaa' ), 126 'slug' => 'custom-duotone', 127 'name' => 'Custom Duotone', 128 ), 129 ), 130 ), 121 131 ), 122 132 'typography' => array( … … 134 144 ), 135 145 'spacing' => array( 136 'units' => array( 'rem' ), 137 'padding' => true, 146 'units' => array( 'rem' ), 147 'padding' => true, 148 'blockGap' => true, 138 149 ), 139 150 'blocks' => array( … … 245 256 /** 246 257 * @ticket 54336 258 * @ticket 56611 247 259 */ 248 260 function test_merges_child_theme_json_into_parent_theme_json() { … … 254 266 'custom' => false, 255 267 'customGradient' => false, 268 'duotone' => array( 269 'theme' => array( 270 array( 271 'colors' => array( '#333333', '#aaaaaa' ), 272 'name' => 'Custom Duotone', 273 'slug' => 'custom-duotone', 274 ), 275 ), 276 ), 256 277 'gradients' => array( 257 278 'theme' => array( … … 298 319 ), 299 320 'spacing' => array( 300 'units' => array( 'rem' ), 301 'padding' => true, 321 'blockGap' => true, 322 'units' => array( 'rem' ), 323 'padding' => true, 302 324 ), 303 325 'blocks' => array( … … 367 389 } 368 390 $query_count = count( $this->queries ) - $query_count; 369 $this->assert Same( 0, $query_count, 'Unexpected SQL queries detected for the wp_global_style post type' );391 $this->assertEquals( 0, $query_count, 'Unexpected SQL queries detected for the wp_global_style post type' ); 370 392 371 393 $user_cpt = WP_Theme_JSON_Resolver::get_user_data_from_wp_global_styles( $theme ); … … 382 404 } 383 405 $query_count = count( $this->queries ) - $query_count; 384 $this->assert Same( 0, $query_count, 'Unexpected SQL queries detected for the wp_global_style post type' );406 $this->assertEquals( 0, $query_count, 'Unexpected SQL queries detected for the wp_global_style post type' ); 385 407 remove_filter( 'query', array( $this, 'filter_db_query' ) ); 386 408 }
Note: See TracChangeset
for help on using the changeset viewer.