Changeset 60729 for trunk/tests/phpunit/tests/theme/wpThemeJson.php
- Timestamp:
- 09/11/2025 02:45:56 PM (11 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpThemeJson.php
r59814 r60729 2459 2459 2460 2460 $func = $theme_json->getMethod( 'get_block_nodes' ); 2461 $func->setAccessible( true ); 2461 if ( PHP_VERSION_ID < 81000 ) { 2462 $func->setAccessible( true ); 2463 } 2462 2464 2463 2465 $theme_json = array( … … 2513 2515 2514 2516 $func = $theme_json->getMethod( 'get_block_nodes' ); 2515 $func->setAccessible( true ); 2517 if ( PHP_VERSION_ID < 81000 ) { 2518 $func->setAccessible( true ); 2519 } 2516 2520 2517 2521 $theme_json = array( … … 3852 3856 3853 3857 $get_property_value_method = $reflection_class->getMethod( 'get_property_value' ); 3854 $get_property_value_method->setAccessible( true ); 3858 if ( PHP_VERSION_ID < 80100 ) { 3859 $get_property_value_method->setAccessible( true ); 3860 } 3855 3861 $result = $get_property_value_method->invoke( null, $styles, $path ); 3856 3862 … … 5843 5849 ); 5844 5850 $reflection = new ReflectionMethod( $theme_json, 'process_blocks_custom_css' ); 5845 $reflection->setAccessible( true ); 5851 if ( PHP_VERSION_ID < 80100 ) { 5852 $reflection->setAccessible( true ); 5853 } 5846 5854 5847 5855 $this->assertSame( $expected, $reflection->invoke( $theme_json, $input['css'], $input['selector'] ) ); … … 6178 6186 6179 6187 $func = $theme_json->getMethod( 'get_block_style_variation_selector' ); 6180 $func->setAccessible( true ); 6188 if ( PHP_VERSION_ID < 80100 ) { 6189 $func->setAccessible( true ); 6190 } 6181 6191 6182 6192 $actual = $func->invoke( null, 'custom', $selector ); … … 6260 6270 6261 6271 $func = $theme_json->getMethod( 'scope_style_node_selectors' ); 6262 $func->setAccessible( true ); 6272 if ( PHP_VERSION_ID < 80100 ) { 6273 $func->setAccessible( true ); 6274 } 6263 6275 6264 6276 $node = array( … … 6309 6321 6310 6322 $func = $theme_json->getMethod( 'get_block_nodes' ); 6311 $func->setAccessible( true ); 6323 if ( PHP_VERSION_ID < 80100 ) { 6324 $func->setAccessible( true ); 6325 } 6312 6326 6313 6327 $theme_json = array( … … 6345 6359 6346 6360 $func = $theme_json->getMethod( 'get_block_nodes' ); 6347 $func->setAccessible( true ); 6361 if ( PHP_VERSION_ID < 80100 ) { 6362 $func->setAccessible( true ); 6363 } 6348 6364 6349 6365 $theme_json = array(
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)