Skip to content

GL-1723: Added expires_at mandatory arg for codestudio token. #1921

GL-1723: Added expires_at mandatory arg for codestudio token.

GL-1723: Added expires_at mandatory arg for codestudio token. #1921

Triggered via pull request October 30, 2023 11:45
Status Success
Total duration 4m 19s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
4m 9s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 warning
Mutation Testing: src/Command/CodeStudio/CodeStudioWizardCommand.php#L169
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ $formattedDate = $d->format('Y-m-d\\TH:i:s\\Z'); $format = "Y-m-d\\TH:i:s\\Z"; $dateTime = \DateTime::createFromFormat($format, $formattedDate); - $projectAccessToken = $this->gitLabClient->projects()->createProjectAccessToken($project['id'], ['expires_at' => $dateTime, 'name' => $projectAccessTokenName, 'scopes' => ['api', 'write_repository']]); + $projectAccessToken = $this->gitLabClient->projects()->createProjectAccessToken($project['id'], ['name' => $projectAccessTokenName, 'scopes' => ['api', 'write_repository']]); $this->checklist->completePreviousItem(); return $projectAccessToken['token']; }