Skip to content

Commit

Permalink
Merge pull request #2805 from WPO-Foundation/test-user-id
Browse files Browse the repository at this point in the history
fix(test): add test user id
  • Loading branch information
jefflembeck authored Mar 29, 2023
2 parents 0be50ea + 385f5d4 commit 5f51da9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/runtest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2377,7 +2377,7 @@ function LogTest(&$test, $testId, $url)
if ($supportsCPAuth && isset($request_context) && !is_null($request_context->getUser())) {
$user_info = $request_context->getUser()->getEmail();
$client_id = $request_context->getUser()->getOwnerId();
$create_contact_id = $request_context->getUser()->getUserId();
$create_contact_id = $request_context->getUser()->getContactId();
} elseif ($supportsSaml) {
$saml_email = GetSamlEmail();
$client_id = GetSamlAccount();
Expand Down Expand Up @@ -2408,6 +2408,7 @@ function LogTest(&$test, $testId, $url)
'private' => $test['private'],
'testUID' => @$test['uid'],
'testUser' => $user_info,
'testUserId' => @$test['user_id'],
'video' => @$video,
'label' => @$test['label'],
'owner' => @$test['owner'],
Expand Down Expand Up @@ -2435,6 +2436,7 @@ function LogTest(&$test, $testId, $url)
'private' => $test['private'],
'testUID' => @$test['uid'],
'testUser' => $user_info,
'testUserId' => @$test['user_id'],
'video' => @$video,
'label' => @$test['label'],
'owner' => @$test['owner'],
Expand Down

0 comments on commit 5f51da9

Please sign in to comment.