Add test coverage for API key generation and deletion

This commit is contained in:
Dane Everitt 2020-06-25 22:36:58 -07:00
parent 7a5f7b99a7
commit a81f6882f7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 222 additions and 0 deletions

View file

@ -103,6 +103,7 @@ class ApiKeyController extends ClientApiController
public function delete(ClientApiRequest $request, string $identifier)
{
$response = $this->repository->deleteWhere([
'key_type' => ApiKey::TYPE_ACCOUNT,
'user_id' => $request->user()->id,
'identifier' => $identifier,
]);