diff --git a/tests/modules/apigee_mock_api_client/tests/src/Traits/ApigeeMockApiClientHelperTrait.php b/tests/modules/apigee_mock_api_client/tests/src/Traits/ApigeeMockApiClientHelperTrait.php index d92cc85e7..383a059cf 100644 --- a/tests/modules/apigee_mock_api_client/tests/src/Traits/ApigeeMockApiClientHelperTrait.php +++ b/tests/modules/apigee_mock_api_client/tests/src/Traits/ApigeeMockApiClientHelperTrait.php @@ -453,6 +453,7 @@ public function addUserToXteam(TeamInterface $team, UserInterface $user) { /** @var \Drupal\apigee_edge_teams\Entity\TeamMemberRoleInterface $team_member_roles */ $team_member_role_storage = \Drupal::entityTypeManager()->getStorage('team_member_role'); + $this->queueAppGroupResponse($team->decorated(), $user->getEmail()); $team_member_role_storage->addTeamRoles($user, $team, ['admin']); $team_member_roles = $team_member_role_storage->loadByDeveloperAndTeam($user, $team); $team_member_roles->save(); @@ -462,6 +463,7 @@ public function addUserToXteam(TeamInterface $team, UserInterface $user) { ]); $teamMembershipManager = \Drupal::service('apigee_edge_teams.team_membership_manager'); $this->queueAppGroupResponse($team->decorated(), $user->getEmail()); + $this->queueAppGroupResponse($team->decorated(), $user->getEmail()); $teamMembershipManager->addMembers($team->id(), [$user->getEmail() => ['admin']]); $this->queueDeveloperResponse($user, 200, [