Changeset 56513 for trunk/tests/phpunit/tests/post/query.php
- Timestamp:
- 09/05/2023 12:21:27 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/post/query.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/query.php
r55745 r56513 776 776 $this->assertIsInt( $q->found_posts ); 777 777 } 778 779 /** 780 * @ticket 57296 781 * @covers WP_Query::get_posts 782 */ 783 public function test_split_the_query_object_cache() { 784 $filter = new MockAction(); 785 add_filter( 'split_the_query', array( $filter, 'filter' ) ); 786 787 $q = new WP_Query( 788 array( 789 'posts_per_page' => 501, 790 ) 791 ); 792 793 $this->assertSame( (bool) wp_using_ext_object_cache(), $filter->get_args()[0][0] ); 794 } 778 795 }
Note: See TracChangeset
for help on using the changeset viewer.