Changeset 31662 for trunk/tests/phpunit/tests/query.php
- Timestamp:
- 03/07/2015 03:44:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query.php
r31366 r31662 123 123 unset( $q->query_vars['wptests_tax'] ); 124 124 } 125 126 public function test_orderby_space_separated() { 127 global $wpdb; 128 129 $q = new WP_Query( array( 130 'orderby' => 'title date', 131 'order' => 'DESC', 132 ) ); 133 134 $this->assertContains( "ORDER BY $wpdb->posts.post_title DESC, $wpdb->posts.post_date DESC", $q->request ); 135 } 125 136 }
Note: See TracChangeset
for help on using the changeset viewer.