Changeset 36138 for trunk/tests/phpunit/tests/query/results.php
- Timestamp:
- 12/31/2015 05:15:23 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/query/results.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/results.php
r35242 r36138 704 704 $this->assertCount( 0, $result2 ); 705 705 } 706 707 /** 708 * @ticket 15610 709 */ 710 public function test_main_comments_feed_includes_attachment_comments() { 711 $attachment_id = self::factory()->post->create( array( 'post_type' => 'attachment' ) ); 712 $comment_id = self::factory()->comment->create( array( 'comment_post_ID' => $attachment_id, 'comment_approved' => '1' ) ); 713 714 $this->q->query( array( 'withcomments' => 1, 'feed' => 'feed' ) ); 715 716 $this->assertTrue( $this->q->have_comments() ); 717 718 $feed_comment = $this->q->next_comment(); 719 $this->assertEquals( $comment_id, $feed_comment->comment_ID ); 720 } 706 721 }
Note: See TracChangeset
for help on using the changeset viewer.