MockResponse::make([ ['id' => '1', 'name' => 'IT Services'], ['id' => '2', 'name' => 'Design'], ], 200, ['Content-Type' => 'application/json']), ]); $config = createTestConfig(); $connector = new AlfaBankConnector($config); $connector->withMockClient($mockClient); $response = $connector->send(new GetActivitiesRequest()); expect($response->status())->toBe(200) ->and($response->dto()->count())->toBe(2) ->and($response->dto()->first()->name)->toBe('IT Services'); });