mirror of
https://github.com/flextype/flextype.git
synced 2025-08-10 15:14:20 +02:00
feat(tests): update tests for endpoints #477
This commit is contained in:
@@ -75,8 +75,7 @@ flextype()->get('/api/registry', function (Request $request, Response $response)
|
||||
|
||||
// Update calls counter
|
||||
flextype('filesystem')->file($registry_token_file_path)
|
||||
->put(flextype('yaml')
|
||||
->encode(array_replace_recursive($registry_token_file_data, ['calls' => $registry_token_file_data['calls'] + 1]));
|
||||
->put(flextype('yaml')->encode(array_replace_recursive($registry_token_file_data, ['calls' => $registry_token_file_data['calls'] + 1])));
|
||||
|
||||
if ($response_code === 404) {
|
||||
// Return response
|
||||
|
Reference in New Issue
Block a user