- Timestamp:
- 07/06/2016 02:02:37 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.