Changeset 36224 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 01/08/2016 09:51:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r35512 r36224 806 806 807 807 /** 808 * @ticket 35377 809 */ 810 public function test_get_comments_by_author_url() { 811 $c1 = self::factory()->comment->create( array( 'comment_post_ID' => $this->post_id, 'comment_author' => 'bar', 'comment_author_email' => 'bar@example.com', 'comment_author_url' => 'http://foo.bar' ) ); 812 $c2 = self::factory()->comment->create( array( 'comment_post_ID' => $this->post_id, 'comment_author' => 'bar', 'comment_author_email' => 'bar@example.com', 'comment_author_url' => 'http://foo.bar' ) ); 813 $c3 = self::factory()->comment->create( array( 'comment_post_ID' => $this->post_id, 'comment_author' => 'bar', 'comment_author_email' => 'bar@example.com', 'comment_author_url' => 'http://foo.bar/baz' ) ); 814 815 $comments = get_comments( array( 816 'author_url' => 'http://foo.bar', 817 ) ); 818 819 $this->assertCount( 2, $comments ); 820 $this->assertSame( $c1, (int) $comments[0]->comment_ID ); 821 $this->assertSame( $c2, (int) $comments[1]->comment_ID ); 822 } 823 824 /** 808 825 * @ticket 28434 809 826 */
Note: See TracChangeset
for help on using the changeset viewer.