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