Skip to content

Commit

Permalink
Fix testfail due to getCacheTags() on null error (#1025)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Jan 11, 2024
1 parent b0555e7 commit dc96b7d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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, [
Expand Down

0 comments on commit dc96b7d

Please sign in to comment.