Changeset 34212 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 09/15/2015 04:34:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r34205 r34212 1838 1838 $this->assertEqualSets( array( $c1, $c2 ), $ids->comments ); 1839 1839 } 1840 1841 /** 1842 * @ticket 33883 1843 */ 1844 public function test_orderby_comment__in() { 1845 $this->factory->comment->create( array( 1846 'comment_post_ID' => $this->post_id, 1847 'comment_approved' => '1' 1848 ) ); 1849 1850 $c2 = $this->factory->comment->create( array( 1851 'comment_post_ID' => $this->post_id, 1852 'comment_approved' => '1' 1853 ) ); 1854 $c3 = $this->factory->comment->create( array( 1855 'comment_post_ID' => $this->post_id, 1856 'comment_approved' => '1' 1857 ) ); 1858 1859 $this->factory->comment->create( array( 1860 'comment_post_ID' => $this->post_id, 1861 'comment_approved' => '1' 1862 ) ); 1863 1864 1865 $ids = new WP_Comment_Query( array( 1866 'fields' => 'ids', 1867 'comment__in' => array( $c2, $c3 ), 1868 'orderby' => 'comment__in' 1869 ) ); 1870 1871 $this->assertEquals( array( $c2, $c3 ), $ids->comments ); 1872 1873 } 1840 1874 }
Note: See TracChangeset
for help on using the changeset viewer.