Changeset 41188
- Timestamp:
- 07/30/2017 02:42:56 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r39274 r41188 2663 2663 global $wpdb; 2664 2664 2665 $q = new WP_Comment_Query( array(2666 'post_id' => self::$post_id,2667 'fields' => 'ids',2668 ) );2669 2670 2665 $c = wp_insert_comment( array( 2671 2666 'comment_author' => 'Foo', … … 2674 2669 ) ); 2675 2670 2671 $q = new WP_Comment_Query( array( 2672 'post_id' => self::$post_id, 2673 'fields' => 'ids', 2674 ) ); 2675 2676 2676 $num_queries = $wpdb->num_queries; 2677 2678 $q2 = new WP_Comment_Query( array( 2679 'post_id' => self::$post_id, 2680 'fields' => 'ids', 2681 ) ); 2682 2683 $this->assertSame( $num_queries, $wpdb->num_queries ); 2677 2684 } 2678 2685
Note: See TracChangeset
for help on using the changeset viewer.