- Timestamp:
- 10/14/2024 10:20:09 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-posts-controller.php
r59120 r59235 1713 1713 rest_get_server()->dispatch( $request ); 1714 1714 1715 $args = $filter->get_args(); 1716 $last = end( $args ); 1717 $this->assertIsArray( $last, 'The last value is not an array' ); 1718 $this->assertSameSets( $parent_ids, $last[1] ); 1715 $events = $filter->get_events(); 1716 $args = wp_list_pluck( $events, 'args' ); 1717 $primed = false; 1718 sort( $parent_ids ); 1719 foreach ( $args as $arg ) { 1720 sort( $arg[1] ); 1721 if ( $parent_ids === $arg[1] ) { 1722 $primed = $arg; 1723 break; 1724 } 1725 } 1726 1727 $this->assertIsArray( $primed, 'The last value is not an array' ); 1728 $this->assertSameSets( $parent_ids, $primed[1] ); 1719 1729 } 1720 1730
Note: See TracChangeset
for help on using the changeset viewer.