fix(formating)

This commit is contained in:
Anatoliy Poloz
2026-01-28 03:36:26 +03:00
parent 1723177949
commit b15d29f8e9
313 changed files with 1863 additions and 1533 deletions

View File

@@ -1,13 +1,13 @@
<?php
use Apoloz\AlfaBank\Core\AlfaBankConnector;
use Apoloz\AlfaBank\Requests\CloudSignature\ConfirmSigningWithSmsRequest;
use Apoloz\AlfaBank\Requests\CloudSignature\GetDnRequest;
use Apoloz\AlfaBank\Requests\CloudSignature\IssueRsaCertificateRequest;
use Apoloz\AlfaBank\Requests\CloudSignature\SubmitSigningRequest;
use Apoloz\AlfaBank\Requests\CloudSignature\ConfirmSigningWithSmsRequest;
use Saloon\Http\Faking\MockResponse;
test('can get user dn', function () {
test('can get user dn', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
GetDnRequest::class => MockResponse::make(['dn' => 'CN=Test'], 200),
]);
@@ -16,12 +16,12 @@ test('can get user dn', function () {
$connector = new AlfaBankConnector($config);
$connector->withMockClient($mockClient);
$response = $connector->send(new GetDnRequest());
$response = $connector->send(new GetDnRequest);
expect($response->status())->toBe(200);
});
test('can request rsa certificate issue', function () {
test('can request rsa certificate issue', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
IssueRsaCertificateRequest::class => MockResponse::make(['id' => 'ISSUE-1'], 200),
]);
@@ -35,7 +35,7 @@ test('can request rsa certificate issue', function () {
expect($response->status())->toBe(200);
});
test('can submit signing request', function () {
test('can submit signing request', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
SubmitSigningRequest::class => MockResponse::make(['operationId' => 'OP-1'], 200),
]);
@@ -49,7 +49,7 @@ test('can submit signing request', function () {
expect($response->status())->toBe(200);
});
test('can confirm signing with sms', function () {
test('can confirm signing with sms', function (): void {
$mockClient = new \Saloon\Http\Faking\MockClient([
ConfirmSigningWithSmsRequest::class => MockResponse::make([], 200),
]);