Changeset 60729 for trunk/tests/phpunit/tests/dependencies/scripts.php
- Timestamp:
- 09/11/2025 02:45:56 PM (4 months ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/dependencies/scripts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/dependencies/scripts.php
r60728 r60729 446 446 $wp_scripts_reflection = new ReflectionClass( WP_Scripts::class ); 447 447 $filter_eligible_strategies = $wp_scripts_reflection->getMethod( 'filter_eligible_strategies' ); 448 $filter_eligible_strategies->setAccessible( true ); 448 if ( PHP_VERSION_ID < 80100 ) { 449 $filter_eligible_strategies->setAccessible( true ); 450 } 449 451 $this->assertSame( $expected, $filter_eligible_strategies->invokeArgs( wp_scripts(), array( $handle ) ), 'Expected return value of WP_Scripts::filter_eligible_strategies to match.' ); 450 452 }
Note: See TracChangeset
for help on using the changeset viewer.