From dc96b7d758536bf89e0253447cfd7abffb26f5aa Mon Sep 17 00:00:00 2001 From: Shishir <75600200+shishir-intelli@users.noreply.github.com> Date: Thu, 11 Jan 2024 14:48:10 +0530 Subject: [PATCH] Fix testfail due to getCacheTags() on null error (#1025) --- .../tests/src/Traits/ApigeeMockApiClientHelperTrait.php | 2 ++ 1 file changed, 2 insertions(+) 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 d92cc85e..383a059c 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, [