- Timestamp:
- 08/16/2014 12:03:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/class-bp-user-query.php
r8675 r8928 202 202 } 203 203 204 public function test_bp_user_query_search_with_ampersand_sign() { 205 206 // LIKE special character: & 207 $user_id = $this->create_user(); 208 xprofile_set_field_data( 1, $user_id, "a&mpersand" ); 209 $q = new BP_User_Query( array( 'search_terms' => "a&m", ) ); 210 211 $found_user_id = null; 212 if ( ! empty( $q->results ) ) { 213 $found_user = array_pop( $q->results ); 214 $found_user_id = $found_user->ID; 215 } 216 217 $this->assertEquals( $user_id, $found_user_id ); 218 219 } 220 204 221 /** 205 222 * @group search_terms
Note: See TracChangeset
for help on using the changeset viewer.