diff --git a/src/Endpoints/Insurance.php b/src/Endpoints/Insurance.php index 93545b78..d7c85a6b 100644 --- a/src/Endpoints/Insurance.php +++ b/src/Endpoints/Insurance.php @@ -318,6 +318,7 @@ public function addCustomerSessionToRequest($request, $customerSessionId = null, /** * @param string $subscriptionId * @return void + * @throws InsuranceCancelPendingException * @throws ParametersException * @throws RequestError * @throws RequestException diff --git a/tests/Unit/Legacy/Endpoints/InsuranceTest.php b/tests/Unit/Legacy/Endpoints/InsuranceTest.php index 0cf035f6..23bfadaa 100644 --- a/tests/Unit/Legacy/Endpoints/InsuranceTest.php +++ b/tests/Unit/Legacy/Endpoints/InsuranceTest.php @@ -898,6 +898,7 @@ public function testSendCustomerCartCallApiPostCustomerCartWithCmsReferencesArra /** * @return void + * @throws InsuranceCancelPendingException * @throws ParametersException * @throws RequestError * @throws RequestException @@ -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); @@ -941,6 +949,9 @@ public function testCheckSubscriptionIdFormatThrowParamsErrorForBadPayload($payl $this->insuranceMock->checkSubscriptionIdFormat($payload); } + /** + * @return array + */ public function cancelSubscriptionErrorPayloadDataProvider() { return [