MockResponse::make(['status' => 'APPROVED'], 200), ]); $config = createTestConfig(); $connector = new AlfaBankConnector($config); $connector->withMockClient($mockClient); $response = $connector->send(new CheckComplianceRequest('7700000000', 'Test LLC')); expect($response->status())->toBe(200); }); test('can create aff register', function () { $mockClient = new \Saloon\Http\Faking\MockClient([ CreateRegisterRequest::class => MockResponse::make(['id' => 'AFF-123'], 200), ]); $config = createTestConfig(); $connector = new AlfaBankConnector($config); $connector->withMockClient($mockClient); $response = $connector->send(new CreateRegisterRequest(new \Apoloz\AlfaBank\Data\Aff\AffRegisterData([]))); expect($response->status())->toBe(200); });