From c38023bab10855f187f7997daca420f0978d1b63 Mon Sep 17 00:00:00 2001 From: Renato Alves <19148962+renatonascalves@users.noreply.github.com> Date: Thu, 30 May 2024 22:24:37 -0300 Subject: [PATCH 1/2] Do not remove/demote the last group admins --- features/activity-favorite.feature | 2 +- features/activity-meta.feature | 2 +- features/activity.feature | 2 +- features/component.feature | 2 +- features/friend.feature | 2 +- features/group-invite.feature | 2 +- features/group-member.feature | 65 ++++++++++++++++++++++----- features/group-meta.feature | 2 +- features/group.feature | 18 +++++++- features/message.feature | 2 +- features/notification.feature | 2 +- features/scaffold.feature | 2 +- features/signup.feature | 2 +- features/sitewide-notice.feature | 2 +- features/tool.feature | 2 +- features/xprofile-data.feature | 2 +- features/xprofile-field.feature | 2 +- features/xprofile-group.feature | 2 +- src/group-member.php | 71 ++++++++++++++++++++++-------- src/group.php | 5 ++- 20 files changed, 142 insertions(+), 49 deletions(-) diff --git a/features/activity-favorite.feature b/features/activity-favorite.feature index 4c42bf3d..9b2e5acc 100644 --- a/features/activity-favorite.feature +++ b/features/activity-favorite.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Activity Favorites Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate activity` diff --git a/features/activity-meta.feature b/features/activity-meta.feature index d5d31c17..883a9dd9 100644 --- a/features/activity-meta.feature +++ b/features/activity-meta.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Activity custom fields Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate activity` diff --git a/features/activity.feature b/features/activity.feature index c0acf86c..45078671 100644 --- a/features/activity.feature +++ b/features/activity.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Activities Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate activity` diff --git a/features/component.feature b/features/component.feature index f8f79849..bbd168c9 100644 --- a/features/component.feature +++ b/features/component.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Components Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ Scenario: Component CRUD Operations diff --git a/features/friend.feature b/features/friend.feature index 8b742f28..bb77da44 100644 --- a/features/friend.feature +++ b/features/friend.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Friends Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate friends` diff --git a/features/group-invite.feature b/features/group-invite.feature index ef945ad2..d3634d99 100644 --- a/features/group-invite.feature +++ b/features/group-invite.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Group Invites Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate groups` diff --git a/features/group-member.feature b/features/group-member.feature index 7ec1b676..ba3f6f13 100644 --- a/features/group-member.feature +++ b/features/group-member.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Group Members Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate groups` @@ -18,21 +18,39 @@ Feature: Manage BuddyPress Group Members Then STDOUT should be a number And save STDOUT as {MEMBER_ID} + When I run `wp user create randon randon@example.com --porcelain` + Then STDOUT should be a number + And save STDOUT as {RANDON_MEMBER_ID} + + When I run `wp user create anothermod anothermod@example.com --porcelain` + Then STDOUT should be a number + And save STDOUT as {ANOTHER_MEMBER_ID} + When I run `wp bp group create --name="Totally Cool Group" --creator-id={CREATOR_ID} --porcelain` Then STDOUT should be a number And save STDOUT as {GROUP_ID} - When I run `wp bp group member create --group-id={GROUP_ID} --user-id={MEMBER_ID}` + When I run `wp bp group meta add {GROUP_ID} invite_status 'public'` + Then STDOUT should not be empty + + When I run `wp bp group member add --group-id={GROUP_ID} --user-id={MEMBER_ID}` Then STDOUT should contain: """ Success: Added user #{MEMBER_ID} to group #{GROUP_ID} as member. """ + When I run `wp bp group member create --group-id={GROUP_ID} --user-id={ANOTHER_MEMBER_ID}` + Then STDOUT should contain: + """ + Success: Added user #{ANOTHER_MEMBER_ID} to group #{GROUP_ID} as member. + """ + When I run `wp bp group member list {GROUP_ID} --fields=id` Then STDOUT should be a table containing rows: - | id | - | {CREATOR_ID} | - | {MEMBER_ID} | + | id | + | {CREATOR_ID} | + | {MEMBER_ID} | + | {ANOTHER_MEMBER_ID} | When I run `wp bp group member promote --group-id={GROUP_ID} --user-id={MEMBER_ID} --role=mod` Then STDOUT should contain: @@ -45,6 +63,13 @@ Feature: Manage BuddyPress Group Members | id | | {MEMBER_ID} | + When I try `wp bp group member demote --group-id={GROUP_ID} --user-id={RANDON_MEMBER_ID}` + Then the return code should be 1 + Then STDERR should be: + """ + Error: User is not a member of the group. + """ + When I run `wp bp group member demote --group-id={GROUP_ID} --user-id={MEMBER_ID}` Then STDOUT should contain: """ @@ -54,7 +79,25 @@ Feature: Manage BuddyPress Group Members When I try `wp bp group member list {GROUP_ID} --fields=user_id --role=mod` Then the return code should be 1 - When I run `wp bp group member ban --group-id={GROUP_ID} --user-id={MEMBER_ID}` + When I run `wp bp group member promote --group-id={GROUP_ID} --user-id={MEMBER_ID} --role=admin` + Then STDOUT should contain: + """ + Success: Member promoted to new role successfully. + """ + + When I run `wp bp group member promote --group-id={GROUP_ID} --user-id={ANOTHER_MEMBER_ID} --role=admin` + Then STDOUT should contain: + """ + Success: Member promoted to new role successfully. + """ + + When I run `wp bp group member demote --group-id={GROUP_ID} --user-id={ANOTHER_MEMBER_ID}` + Then STDOUT should contain: + """ + Success: User demoted to the "member" status. + """ + + When I run `wp bp group member ban --group-id={GROUP_ID} --user-id={ANOTHER_MEMBER_ID}` Then STDOUT should contain: """ Success: Member banned from the group. @@ -62,10 +105,10 @@ Feature: Manage BuddyPress Group Members When I run `wp bp group member list {GROUP_ID} --fields=user_id --role=banned` Then STDOUT should be a table containing rows: - | user_id | - | {MEMBER_ID} | + | user_id | + | {ANOTHER_MEMBER_ID} | - When I run `wp bp group member unban --group-id={GROUP_ID} --user-id={MEMBER_ID}` + When I run `wp bp group member unban --group-id={GROUP_ID} --user-id={ANOTHER_MEMBER_ID}` Then STDOUT should contain: """ Success: Member unbanned from the group. @@ -74,8 +117,8 @@ Feature: Manage BuddyPress Group Members When I try `wp bp group member list {GROUP_ID} --fields=user_id --role=banned` Then the return code should be 1 - When I run `wp bp group member remove --group-id={GROUP_ID} --user-id={MEMBER_ID}` + When I run `wp bp group member remove --group-id={GROUP_ID} --user-id={ANOTHER_MEMBER_ID}` Then STDOUT should contain: """ - Success: Member #{MEMBER_ID} removed from the group #{GROUP_ID}. + Success: Member #{ANOTHER_MEMBER_ID} removed from the group #{GROUP_ID}. """ diff --git a/features/group-meta.feature b/features/group-meta.feature index 4893215d..9188fb4a 100644 --- a/features/group-meta.feature +++ b/features/group-meta.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Group custom fields Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate groups` diff --git a/features/group.feature b/features/group.feature index c418b866..151b492f 100644 --- a/features/group.feature +++ b/features/group.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Groups Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate groups` @@ -28,6 +28,10 @@ Feature: Manage BuddyPress Groups When I try `wp bp group get i-do-not-exist` Then the return code should be 1 + Then STDERR should be: + """ + Error: No group found by that slug or ID. + """ When I run `wp bp group update {GROUP_ID} --description=foo` Then STDOUT should not be empty @@ -46,6 +50,10 @@ Feature: Manage BuddyPress Groups When I try `wp bp group get {GROUP_ID}` Then the return code should be 1 + Then STDERR should be: + """ + Error: No group found by that slug or ID. + """ Scenario: Group list @@ -53,10 +61,16 @@ Feature: Manage BuddyPress Groups Then STDOUT should be a number And save STDOUT as {GROUP_ONE_ID} + When I run `wp bp group meta add {GROUP_ONE_ID} invite_status 'public'` + Then STDOUT should not be empty + When I run `wp bp group create --name="AAA Group 2" --slug=group2 --porcelain` Then STDOUT should be a number And save STDOUT as {GROUP_TWO_ID} + When I run `wp bp group meta add {GROUP_TWO_ID} invite_status 'public'` + Then STDOUT should not be empty + When I run `wp bp group list --fields=id,name,slug` Then STDOUT should be a table containing rows: | id | name | slug | @@ -82,7 +96,7 @@ Feature: Manage BuddyPress Groups When I try `wp bp group list --fields=id --user-id={MEMBER_ID}` Then the return code should be 1 - When I run `wp bp group member create --group-id={GROUP_ONE_ID} --user-id={MEMBER_ID}` + When I run `wp bp group member add --group-id={GROUP_ONE_ID} --user-id={MEMBER_ID}` Then the return code should be 0 When I run `wp bp group list --fields=id --user-id={MEMBER_ID}` diff --git a/features/message.feature b/features/message.feature index 2b328f74..342fa398 100644 --- a/features/message.feature +++ b/features/message.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Messages Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate messages` diff --git a/features/notification.feature b/features/notification.feature index 44faf5f0..5b7f5e5e 100644 --- a/features/notification.feature +++ b/features/notification.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Notifications Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate notifications` diff --git a/features/scaffold.feature b/features/scaffold.feature index ed79abe0..dc032d81 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -4,7 +4,7 @@ Feature: Scaffold BuddyPress tests Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ Scenario: Scaffold plugin tests diff --git a/features/signup.feature b/features/signup.feature index d6071852..270ef958 100644 --- a/features/signup.feature +++ b/features/signup.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Signups Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp tool signup 1` diff --git a/features/sitewide-notice.feature b/features/sitewide-notice.feature index 39910c2b..8d781ff4 100644 --- a/features/sitewide-notice.feature +++ b/features/sitewide-notice.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Site Notices Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate messages` diff --git a/features/tool.feature b/features/tool.feature index 5f3b3eb8..f8d08a92 100644 --- a/features/tool.feature +++ b/features/tool.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Tools Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate friends` And I run `wp bp component activate groups` diff --git a/features/xprofile-data.feature b/features/xprofile-data.feature index 6765e4e1..56897d43 100644 --- a/features/xprofile-data.feature +++ b/features/xprofile-data.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress XProfile Data Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate xprofile` diff --git a/features/xprofile-field.feature b/features/xprofile-field.feature index 39ff8b0b..36b2f532 100644 --- a/features/xprofile-field.feature +++ b/features/xprofile-field.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress XProfile Fields Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate xprofile` diff --git a/features/xprofile-group.feature b/features/xprofile-group.feature index 31eaa4a7..27056b9f 100644 --- a/features/xprofile-group.feature +++ b/features/xprofile-group.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress XProfile Groups Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/BuddyPress/archive/master.zip + https://github.com/buddypress/buddypress/archive/master.zip """ And I run `wp bp component activate xprofile` diff --git a/src/group-member.php b/src/group-member.php index e9b427b2..9bf9e0e1 100644 --- a/src/group-member.php +++ b/src/group-member.php @@ -79,7 +79,8 @@ public function create( $args, $assoc_args ) { } if ( 'member' !== $role ) { - groups_promote_member( $user->ID, $group_id, $role ); + $group_member = new \BP_Groups_Member( $user->ID, $group_id ); + $group_member->promote( $role ); } WP_CLI::success( @@ -117,12 +118,20 @@ public function create( $args, $assoc_args ) { * @alias trash */ public function delete( $args, $assoc_args ) { - $group_id = $this->get_group_id_from_identifier( $assoc_args['group-id'] ); - $user = $this->get_user_id_from_identifier( $assoc_args['user-id'] ); - $member = new \BP_Groups_Member( $user->ID, $group_id ); + $group_id = $this->get_group_id_from_identifier( $assoc_args['group-id'] ); + $user = $this->get_user_id_from_identifier( $assoc_args['user-id'] ); + $group_member = new \BP_Groups_Member( $user->ID, $group_id ); + + // Check if the user is the only admin of the group. + if ( (bool) $group_member->is_admin ) { + $group_admins = groups_get_group_admins( $group_id ); + if ( 1 === count( $group_admins ) ) { + WP_CLI::error( 'Cannot remove the only admin of the group.' ); + } + } // True on success. - if ( $member->remove() ) { + if ( $group_member->remove() ) { WP_CLI::success( sprintf( 'Member #%d removed from the group #%d.', $user->ID, $group_id ) ); } else { WP_CLI::error( 'Could not remove member from the group.' ); @@ -217,6 +226,10 @@ public function list_( $args, $assoc_args ) { $members = $members_query['members']; + if ( empty( $members ) ) { + WP_CLI::error( 'No group members found.' ); + } + // Make 'role' human-readable. foreach ( $members as &$member ) { $role = 'member'; @@ -229,10 +242,6 @@ public function list_( $args, $assoc_args ) { $member->role = $role; } - if ( empty( $members ) ) { - WP_CLI::error( 'No group members found.' ); - } - if ( empty( $assoc_args['fields'] ) ) { $assoc_args['fields'] = [ 'id', @@ -277,11 +286,11 @@ public function list_( $args, $assoc_args ) { * Success: Member promoted to new role successfully. */ public function promote( $args, $assoc_args ) { - $group_id = $this->get_group_id_from_identifier( $assoc_args['group-id'] ); - $user = $this->get_user_id_from_identifier( $assoc_args['user-id'] ); - $member = new \BP_Groups_Member( $user->ID, $group_id ); + $group_id = $this->get_group_id_from_identifier( $assoc_args['group-id'] ); + $user = $this->get_user_id_from_identifier( $assoc_args['user-id'] ); + $group_member = new \BP_Groups_Member( $user->ID, $group_id ); - if ( $member->promote( $assoc_args['role'] ) ) { + if ( $group_member->promote( $assoc_args['role'] ) ) { WP_CLI::success( 'Member promoted to new role successfully.' ); } else { WP_CLI::error( 'Could not promote the member.' ); @@ -301,20 +310,38 @@ public function promote( $args, $assoc_args ) { * * ## EXAMPLES * - * # Demote a user to the "member" status. + * # Demote a user to the "member" status using numeric IDs. * $ wp bp group member demote --group-id=3 --user-id=10 * Success: User demoted to the "member" status. * - * # Demote a user to the "member" status. + * # Demote a user to the "member" status using slugs. * $ wp bp group member demote --group-id=foo --user-id=admin * Success: User demoted to the "member" status. + * + * # Demote a user not part of the group. + * $ wp bp group member demote --group-id=foo --user-id=admin + * Error: User is not a member of the group. */ public function demote( $args, $assoc_args ) { $group_id = $this->get_group_id_from_identifier( $assoc_args['group-id'] ); $user = $this->get_user_id_from_identifier( $assoc_args['user-id'] ); - $member = new \BP_Groups_Member( $user->ID, $group_id ); - if ( $member->demote() ) { + // Check if the user is a member of the group. + if ( ! groups_is_user_member( $user->ID, $group_id ) ) { + WP_CLI::error( 'User is not a member of the group.' ); + } + + $group_member = new \BP_Groups_Member( $user->ID, $group_id ); + + // Check if the user is the only admin of the group. + if ( (bool) $group_member->is_admin ) { + $group_admins = groups_get_group_admins( $group_id ); + if ( 1 === count( $group_admins ) ) { + WP_CLI::error( 'Cannot demote the only admin of the group.' ); + } + } + + if ( $group_member->demote() ) { WP_CLI::success( 'User demoted to the "member" status.' ); } else { WP_CLI::error( 'Could not demote the member.' ); @@ -345,9 +372,15 @@ public function demote( $args, $assoc_args ) { public function ban( $args, $assoc_args ) { $group_id = $this->get_group_id_from_identifier( $assoc_args['group-id'] ); $user = $this->get_user_id_from_identifier( $assoc_args['user-id'] ); - $member = new \BP_Groups_Member( $user->ID, $group_id ); - if ( $member->ban() ) { + // Check if the user is a member of the group. + if ( ! groups_is_user_member( $user->ID, $group_id ) ) { + WP_CLI::error( 'User is not a member of the group.' ); + } + + $group_member = new \BP_Groups_Member( $user->ID, $group_id ); + + if ( $group_member->ban() ) { WP_CLI::success( 'Member banned from the group.' ); } else { WP_CLI::error( 'Could not ban the member.' ); diff --git a/src/group.php b/src/group.php index 4bdd5c7f..da04131c 100644 --- a/src/group.php +++ b/src/group.php @@ -129,11 +129,12 @@ public function create( $args, $assoc_args ) { ] ); - // Auto-generate some stuff. + // Auto-generate slug. if ( empty( $r['slug'] ) ) { $r['slug'] = groups_check_slug( sanitize_title( $r['name'] ) ); } + // Auto-generate description. if ( empty( $r['description'] ) ) { $r['description'] = sprintf( 'Description for group "%s"', $r['name'] ); } @@ -364,7 +365,9 @@ function ( $group_id ) { * * ## EXAMPLES * + * # Update a group. * $ wp bp group update 35 --description="What a cool group!" --name="Group of Cool People" + * Success: Group updated. */ public function update( $args, $assoc_args ) { parent::_update( From 8722895b4c004c478aaba24a527e9335d6f2be81 Mon Sep 17 00:00:00 2001 From: Renato Alves <19148962+renatonascalves@users.noreply.github.com> Date: Thu, 30 May 2024 22:25:17 -0300 Subject: [PATCH 2/2] Revert github change --- features/activity-favorite.feature | 2 +- features/activity-meta.feature | 2 +- features/activity.feature | 2 +- features/component.feature | 2 +- features/friend.feature | 2 +- features/group-invite.feature | 2 +- features/group-member.feature | 2 +- features/group-meta.feature | 2 +- features/group.feature | 2 +- features/message.feature | 2 +- features/notification.feature | 2 +- features/scaffold.feature | 2 +- features/signup.feature | 2 +- features/sitewide-notice.feature | 2 +- features/tool.feature | 2 +- features/xprofile-data.feature | 2 +- features/xprofile-field.feature | 2 +- features/xprofile-group.feature | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/features/activity-favorite.feature b/features/activity-favorite.feature index 9b2e5acc..4c42bf3d 100644 --- a/features/activity-favorite.feature +++ b/features/activity-favorite.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Activity Favorites Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate activity` diff --git a/features/activity-meta.feature b/features/activity-meta.feature index 883a9dd9..d5d31c17 100644 --- a/features/activity-meta.feature +++ b/features/activity-meta.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Activity custom fields Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate activity` diff --git a/features/activity.feature b/features/activity.feature index 45078671..c0acf86c 100644 --- a/features/activity.feature +++ b/features/activity.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Activities Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate activity` diff --git a/features/component.feature b/features/component.feature index bbd168c9..f8f79849 100644 --- a/features/component.feature +++ b/features/component.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Components Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ Scenario: Component CRUD Operations diff --git a/features/friend.feature b/features/friend.feature index bb77da44..8b742f28 100644 --- a/features/friend.feature +++ b/features/friend.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Friends Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate friends` diff --git a/features/group-invite.feature b/features/group-invite.feature index d3634d99..ef945ad2 100644 --- a/features/group-invite.feature +++ b/features/group-invite.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Group Invites Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate groups` diff --git a/features/group-member.feature b/features/group-member.feature index ba3f6f13..a035f934 100644 --- a/features/group-member.feature +++ b/features/group-member.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Group Members Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate groups` diff --git a/features/group-meta.feature b/features/group-meta.feature index 9188fb4a..4893215d 100644 --- a/features/group-meta.feature +++ b/features/group-meta.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Group custom fields Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate groups` diff --git a/features/group.feature b/features/group.feature index 151b492f..eab2f437 100644 --- a/features/group.feature +++ b/features/group.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Groups Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate groups` diff --git a/features/message.feature b/features/message.feature index 342fa398..2b328f74 100644 --- a/features/message.feature +++ b/features/message.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Messages Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate messages` diff --git a/features/notification.feature b/features/notification.feature index 5b7f5e5e..44faf5f0 100644 --- a/features/notification.feature +++ b/features/notification.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Notifications Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate notifications` diff --git a/features/scaffold.feature b/features/scaffold.feature index dc032d81..ed79abe0 100644 --- a/features/scaffold.feature +++ b/features/scaffold.feature @@ -4,7 +4,7 @@ Feature: Scaffold BuddyPress tests Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ Scenario: Scaffold plugin tests diff --git a/features/signup.feature b/features/signup.feature index 270ef958..d6071852 100644 --- a/features/signup.feature +++ b/features/signup.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Signups Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp tool signup 1` diff --git a/features/sitewide-notice.feature b/features/sitewide-notice.feature index 8d781ff4..39910c2b 100644 --- a/features/sitewide-notice.feature +++ b/features/sitewide-notice.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Site Notices Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate messages` diff --git a/features/tool.feature b/features/tool.feature index f8d08a92..5f3b3eb8 100644 --- a/features/tool.feature +++ b/features/tool.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress Tools Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate friends` And I run `wp bp component activate groups` diff --git a/features/xprofile-data.feature b/features/xprofile-data.feature index 56897d43..6765e4e1 100644 --- a/features/xprofile-data.feature +++ b/features/xprofile-data.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress XProfile Data Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate xprofile` diff --git a/features/xprofile-field.feature b/features/xprofile-field.feature index 36b2f532..39ff8b0b 100644 --- a/features/xprofile-field.feature +++ b/features/xprofile-field.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress XProfile Fields Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate xprofile` diff --git a/features/xprofile-group.feature b/features/xprofile-group.feature index 27056b9f..31eaa4a7 100644 --- a/features/xprofile-group.feature +++ b/features/xprofile-group.feature @@ -4,7 +4,7 @@ Feature: Manage BuddyPress XProfile Groups Given a WP install And these installed and active plugins: """ - https://github.com/buddypress/buddypress/archive/master.zip + https://github.com/buddypress/BuddyPress/archive/master.zip """ And I run `wp bp component activate xprofile`