Skip to content

Commit

Permalink
add throw phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-Freoua-Alma committed Feb 21, 2024
1 parent a87713e commit 19835c7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Endpoints/Insurance.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ public function addCustomerSessionToRequest($request, $customerSessionId = null,
/**
* @param string $subscriptionId
* @return void
* @throws InsuranceCancelPendingException
* @throws ParametersException
* @throws RequestError
* @throws RequestException
Expand Down
11 changes: 11 additions & 0 deletions tests/Unit/Legacy/Endpoints/InsuranceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ public function testSendCustomerCartCallApiPostCustomerCartWithCmsReferencesArra

/**
* @return void
* @throws InsuranceCancelPendingException
* @throws ParametersException
* @throws RequestError
* @throws RequestException
Expand All @@ -916,6 +917,13 @@ public function testCancelSubscriptionCallRequestWithSubscriptionArrayPayloadAnd
$this->insuranceMock->cancelSubscription($subscriptionCancelPayload);
}

/**
* @return void
* @throws InsuranceCancelPendingException
* @throws ParametersException
* @throws RequestError
* @throws RequestException
*/
public function testCancelSubscriptionCallRequestWithSubscriptionArrayPayloadAndThrowInsuranceCancelPendingExceptionForResponse410()
{
$this->expectException(InsuranceCancelPendingException::class);
Expand All @@ -941,6 +949,9 @@ public function testCheckSubscriptionIdFormatThrowParamsErrorForBadPayload($payl
$this->insuranceMock->checkSubscriptionIdFormat($payload);
}

/**
* @return array
*/
public function cancelSubscriptionErrorPayloadDataProvider()
{
return [
Expand Down

0 comments on commit 19835c7

Please sign in to comment.