GL-1723: Added expires_at mandatory arg for codestudio token. #1921
mutation.yml
on: pull_request
Mutation Testing
4m 9s
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'];
}
|