Skip to content

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

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

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

Triggered via pull request October 31, 2023 11:07
Status Success
Total duration 1m 6s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
57s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 warning
Mutation Testing: src/Command/CodeStudio/CodeStudioWizardCommand.php#L166
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ } $this->checklist->addItem("Creating access token named <comment>{$projectAccessTokenName}</comment>"); $dateTime = new \DateTime('tomorrow'); - $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']; }