Changeset 30004 for trunk/tests/phpunit/tests/comment/query.php
- Timestamp:
- 10/24/2014 02:50:24 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/query.php
r30003 r30004 578 578 $this->assertContains( 'ORDER BY comment_date_gmt', $q->request ); 579 579 } 580 581 /** 582 * @ticket 29902 583 */ 584 public function test_orderby_none() { 585 $q = new WP_Comment_Query(); 586 $q->query( array( 587 'orderby' => 'none', 588 ) ); 589 590 $this->assertNotContains( 'ORDER BY', $q->request ); 591 } 592 593 /** 594 * @ticket 29902 595 */ 596 public function test_orderby_empty_array() { 597 $q = new WP_Comment_Query(); 598 $q->query( array( 599 'orderby' => array(), 600 ) ); 601 602 $this->assertNotContains( 'ORDER BY', $q->request ); 603 } 604 605 /** 606 * @ticket 29902 607 */ 608 public function test_orderby_false() { 609 $q = new WP_Comment_Query(); 610 $q->query( array( 611 'orderby' => false, 612 ) ); 613 614 $this->assertNotContains( 'ORDER BY', $q->request ); 615 } 580 616 }
Note: See TracChangeset
for help on using the changeset viewer.