Changeset 11526
- Timestamp:
- 04/05/2017 08:04:10 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/bp-groups/classes/class-bp-groups-group.php (modified) (1 diff)
-
tests/phpunit/testcases/groups/class-bp-groups-group.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/classes/class-bp-groups-group.php
r11525 r11526 536 536 $admin_mod_users = get_users( array( 537 537 'include' => array_merge( $admin_ids_plucked, $mod_ids_plucked ), 538 'blog_id' => null, 538 539 ) ); 539 540 -
trunk/tests/phpunit/testcases/groups/class-bp-groups-group.php
r11523 r11526 1449 1449 1450 1450 /** 1451 * @ticket BP7497 1452 */ 1453 public function test_admins_property_should_match_users_without_wp_role() { 1454 $user_1 = $this->factory->user->create_and_get(); 1455 $g = $this->factory->group->create( array( 1456 'creator_id' => $user_1->ID, 1457 ) ); 1458 1459 $user_1->remove_all_caps(); 1460 1461 $group = new BP_Groups_Group( $g ); 1462 1463 $this->assertEqualSets( array( $user_1->ID ), wp_list_pluck( $group->admins, 'user_id' ) ); 1464 } 1465 1466 /** 1451 1467 * @ticket BP5451 1452 1468 */
Note: See TracChangeset
for help on using the changeset viewer.