Skip to content

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

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

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

Triggered via pull request October 31, 2023 11:10
Status Success
Total duration 5m 25s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
5m 17s
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']; }