Changeset 60729 for trunk/tests/phpunit/tests/theme/wpTheme.php
- Timestamp:
- 09/11/2025 02:45:56 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/theme/wpTheme.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/theme/wpTheme.php
r60500 r60729 302 302 $reflection = new ReflectionClass( $theme ); 303 303 $reflection_property = $reflection->getProperty( 'block_theme' ); 304 $reflection_property->setAccessible( true ); 304 if ( PHP_VERSION_ID < 80100 ) { 305 $reflection_property->setAccessible( true ); 306 } 305 307 306 308 $this->assertSame( $expected, $reflection_property->getValue( $theme ) ); … … 612 614 $theme = new WP_Theme( 'twentytwentytwo', $this->theme_root ); 613 615 $sanitize_header = new ReflectionMethod( $theme, 'sanitize_header' ); 614 $sanitize_header->setAccessible( true ); 616 if ( PHP_VERSION_ID < 80100 ) { 617 $sanitize_header->setAccessible( true ); 618 } 615 619 616 620 $actual = $sanitize_header->invoke( $theme, 'UpdateURI', '<?php?><a href="http://example.org">http://example.org</a>' );
Note: See TracChangeset
for help on using the changeset viewer.