forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -5,7 +5,7 @@ use Apoloz\AlfaBank\Requests\Scoring\GetComplianceScoreRequest;
|
||||
use Apoloz\AlfaBank\Requests\Security\GetSubscriptionsRequest;
|
||||
use Saloon\Http\Faking\MockResponse;
|
||||
|
||||
test('can get compliance score', function () {
|
||||
test('can get compliance score', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
GetComplianceScoreRequest::class => MockResponse::make(['score' => 'LOW_RISK'], 200),
|
||||
]);
|
||||
@@ -20,7 +20,7 @@ test('can get compliance score', function () {
|
||||
->and($response->json('score'))->toBe('LOW_RISK');
|
||||
});
|
||||
|
||||
test('can get security subscriptions', function () {
|
||||
test('can get security subscriptions', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
GetSubscriptionsRequest::class => MockResponse::make(['subscriptions' => []], 200),
|
||||
]);
|
||||
@@ -29,7 +29,7 @@ test('can get security subscriptions', function () {
|
||||
$connector = new AlfaBankConnector($config);
|
||||
$connector->withMockClient($mockClient);
|
||||
|
||||
$response = $connector->send(new GetSubscriptionsRequest());
|
||||
$response = $connector->send(new GetSubscriptionsRequest);
|
||||
|
||||
expect($response->status())->toBe(200);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user