Changeset 30402 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 11/20/2014 01:51:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r30266 r30402 29 29 30 30 $this->assertEqualSets( array( $c1, $c2, $c3, $c4, $c5 ), $found ); 31 } 32 33 public function test_query_post_id_0() { 34 $c1 = $this->factory->comment->create( array( 'comment_post_ID' => $this->post_id, 'comment_approved' => '1' ) ); 35 36 $q = new WP_Comment_Query(); 37 $found = $q->query( array( 38 'post_id' => 0, 39 'fields' => 'ids', 40 ) ); 41 42 $this->assertEqualSets( array( $c1 ), $found ); 31 43 } 32 44
Note: See TracChangeset
for help on using the changeset viewer.