Changeset 36251 for trunk/tests/phpunit/tests/query/search.php
- Timestamp:
- 01/10/2016 03:25:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/query/search.php
r35242 r36251 126 126 $this->assertEqualSets( array( $p3 ), $q->posts ); 127 127 } 128 129 /** 130 * @ticket 35361 131 */ 132 public function test_search_orderby_should_be_empty_when_search_string_is_longer_than_6_words_and_exclusion_operator_is_used() { 133 $q = new WP_Query( array( 134 's' => 'foo1 foo2 foo3 foo4 foo5 foo6 foo7 -bar', 135 'fields' => 'ids', 136 ) ); 137 138 $this->assertNotRegExp( '|ORDER BY \(CASE[^\)]+\)|', $q->request ); 139 } 128 140 }
Note: See TracChangeset
for help on using the changeset viewer.