forked from apoloz/alfa-bank-sdk
fix(formating)
This commit is contained in:
@@ -5,10 +5,10 @@ use Apoloz\AlfaBank\Requests\Escrow\GetBuildProjectsRequest;
|
||||
use Apoloz\AlfaBank\Requests\Escrow\GetEscrowOrdersRequest;
|
||||
use Saloon\Http\Faking\MockResponse;
|
||||
|
||||
test('can get build projects', function () {
|
||||
test('can get build projects', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
GetBuildProjectsRequest::class => MockResponse::make([
|
||||
['projectNumber' => '123', 'commercialName' => 'ЖК Тест']
|
||||
['projectNumber' => '123', 'commercialName' => 'ЖК Тест'],
|
||||
], 200),
|
||||
]);
|
||||
|
||||
@@ -16,17 +16,17 @@ test('can get build projects', function () {
|
||||
$connector = new AlfaBankConnector($config);
|
||||
$connector->withMockClient($mockClient);
|
||||
|
||||
$response = $connector->send(new GetBuildProjectsRequest());
|
||||
$response = $connector->send(new GetBuildProjectsRequest);
|
||||
|
||||
expect($response->status())->toBe(200)
|
||||
->and($response->json())->toBeArray()
|
||||
->and($response->json('0.projectNumber'))->toBe('123');
|
||||
});
|
||||
|
||||
test('can get escrow orders', function () {
|
||||
test('can get escrow orders', function (): void {
|
||||
$mockClient = new \Saloon\Http\Faking\MockClient([
|
||||
GetEscrowOrdersRequest::class => MockResponse::make([
|
||||
'orders' => []
|
||||
'orders' => [],
|
||||
], 200),
|
||||
]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user