Skip to content

Commit

Permalink
Merge pull request #70 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 2.0.2: Fix listUsers
  • Loading branch information
mtompset authored Jan 11, 2024
2 parents d170063 + 937015e commit 1a09f61
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 92 deletions.
6 changes: 2 additions & 4 deletions SilMock/Google/Service/Directory/UsersResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,9 @@ public function listUsers($parameters = [])
$userEntry['name']['givenName'] . ' ' . $userEntry['name']['familyName'],
'givenName' => $userEntry['name']['givenName'],
]);
$userEntry['customerId'] = $userEntry['primaryEmail'];
/** @var \Google_Service_Directory_User $newEntry */
$newEntry = new \Google_Service_Directory_User(array(
'primaryEmail' => $userEntry['primaryEmail'],
'customerId' => $userEntry['primaryEmail'],
));
$newEntry = new \Google_Service_Directory_User($userEntry);
$newEntry->setName($newName);

$allResultsUsers = $results->getUsers();
Expand Down
Loading

0 comments on commit 1a09f61

Please sign in to comment.