Changeset 52010 for trunk/tests/phpunit/tests/post/query.php
- Timestamp:
- 11/04/2021 03:22:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post/query.php
r51462 r52010 9 9 * @group taxonomy 10 10 */ 11 function test_category__and_var() {11 public function test_category__and_var() { 12 12 $q = new WP_Query(); 13 13 … … 51 51 * @group taxonomy 52 52 */ 53 function test_empty_category__in() {53 public function test_empty_category__in() { 54 54 $cat_id = self::factory()->category->create(); 55 55 $post_id = self::factory()->post->create(); … … 80 80 * @ticket 22448 81 81 */ 82 function test_the_posts_filter() {82 public function test_the_posts_filter() { 83 83 // Create posts and clear their caches. 84 84 $post_ids = self::factory()->post->create_many( 4 ); … … 118 118 * Use with the_posts filter, appends a post and adds some custom data. 119 119 */ 120 function the_posts_filter( $posts ) {120 public function the_posts_filter( $posts ) { 121 121 $posts[] = clone $posts[0]; 122 122 … … 129 129 } 130 130 131 function test_post__in_ordering() {131 public function test_post__in_ordering() { 132 132 $post_id1 = self::factory()->post->create( 133 133 array( … … 211 211 } 212 212 213 function test_post__in_attachment_ordering() {213 public function test_post__in_attachment_ordering() { 214 214 $post_id = self::factory()->post->create(); 215 215 $att_ids = array(); … … 309 309 } 310 310 311 function test_post_status() {311 public function test_post_status() { 312 312 $statuses1 = get_post_stati(); 313 313 $this->assertContains( 'auto-draft', $statuses1 ); … … 332 332 * @ticket 17065 333 333 */ 334 function test_orderby_array() {334 public function test_orderby_array() { 335 335 global $wpdb; 336 336 … … 368 368 * @ticket 17065 369 369 */ 370 function test_order() {370 public function test_order() { 371 371 global $wpdb; 372 372 … … 408 408 * @ticket 29629 409 409 */ 410 function test_orderby() {410 public function test_orderby() { 411 411 // 'rand' is a valid value. 412 412 $q = new WP_Query( array( 'orderby' => 'rand' ) );
Note: See TracChangeset
for help on using the changeset viewer.