Changeset 10937
- Timestamp:
- 07/06/2016 02:02:37 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-group.php
r10913 r10937 507 507 $user_id = bp_displayed_user_id(); 508 508 509 $search_terms_like = bp_esc_like( $filter ) . '%';509 $search_terms_like = '%' . bp_esc_like( $filter ) . '%'; 510 510 511 511 $pag_sql = $order_sql = $hidden_sql = ''; -
trunk/tests/phpunit/testcases/groups/class-bp-groups-group.php
r10766 r10937 614 614 } 615 615 616 public function test_filter_user_groups_normal_search_middle_of_string() { 617 $g1 = $this->factory->group->create( array( 618 'name' => 'Cool Group', 619 'description' => 'This group is for mandocellos and oboes.', 620 ) ); 621 $g2 = $this->factory->group->create(); 622 $u = $this->factory->user->create(); 623 self::add_user_to_group( $u, $g1 ); 624 625 $groups = BP_Groups_Group::filter_user_groups( 'cello', $u ); 626 627 $found = wp_list_pluck( $groups['groups'], 'group_id' ); 628 $this->assertEquals( array( $g1 ), $found ); 629 } 630 616 631 public function test_filter_user_groups_search_with_underscores() { 617 632 $g1 = $this->factory->group->create( array(
Note: See TracChangeset
for help on using the changeset viewer.