Changeset 60729 for trunk/tests/phpunit/tests/admin/wpCommunityEvents.php
- Timestamp:
- 09/11/2025 02:45:56 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/wpCommunityEvents.php
r55337 r60729 300 300 public function test_trim_expired_events() { 301 301 $trim_events = new ReflectionMethod( $this->instance, 'trim_events' ); 302 $trim_events->setAccessible( true ); 302 if ( PHP_VERSION_ID < 80100 ) { 303 $trim_events->setAccessible( true ); 304 } 303 305 304 306 $events = $this->get_valid_events(); … … 329 331 public function test_trim_events_pin_wordcamp() { 330 332 $trim_events = new ReflectionMethod( $this->instance, 'trim_events' ); 331 $trim_events->setAccessible( true ); 333 if ( PHP_VERSION_ID < 80100 ) { 334 $trim_events->setAccessible( true ); 335 } 332 336 333 337 $actual = $trim_events->invoke( $this->instance, $this->_events_with_unpinned_wordcamp() ); … … 434 438 public function test_trim_events_dont_pin_multiple_wordcamps() { 435 439 $trim_events = new ReflectionMethod( $this->instance, 'trim_events' ); 436 $trim_events->setAccessible( true ); 440 if ( PHP_VERSION_ID < 80100 ) { 441 $trim_events->setAccessible( true ); 442 } 437 443 438 444 $actual = $trim_events->invoke( $this->instance, $this->_events_with_multiple_wordcamps() );
Note: See TracChangeset
for help on using the changeset viewer.