Skip to content

Commit

Permalink
Update GraphHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ScharfViktor authored and rhafer committed Jan 23, 2023
1 parent a4687cf commit 62e347b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/TestHelpers/GraphHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ public static function prepareCreateUserPayload(
$payload['onPremisesSamAccountName'] = $userName;
$payload['passwordProfile'] = ['password' => $password];
$payload['displayName'] = $displayName ?? $userName;
if (!isset($email)) {
if (!empty($email)) {
$payload['mail'] = $email ?? $userName . '@example.com';
}
return \json_encode($payload);
Expand Down

0 comments on commit 62e347b

Please sign in to comment.