Changeset 57987 for trunk/tests/phpunit/tests/post/query.php
- Timestamp:
- 04/12/2024 05:45:23 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/query.php
r57750 r57987 726 726 $q->posts = $posts; 727 727 728 $meth d = new ReflectionMethod( 'WP_Query', 'set_found_posts' );729 $meth d->setAccessible( true );730 $meth d->invoke( $q, array( 'no_found_rows' => false ), array() );728 $method = new ReflectionMethod( 'WP_Query', 'set_found_posts' ); 729 $method->setAccessible( true ); 730 $method->invoke( $q, array( 'no_found_rows' => false ), array() ); 731 731 732 732 $this->assertSame( $expected, $q->found_posts );
Note: See TracChangeset
for help on using the changeset viewer.