From 19835c7f44cae034d914e7ab9e8b27a0c5d24e51 Mon Sep 17 00:00:00 2001 From: Benjamin Freoua Date: Wed, 21 Feb 2024 10:17:51 +0100 Subject: [PATCH] add throw phpdoc --- src/Endpoints/Insurance.php | 1 + tests/Unit/Legacy/Endpoints/InsuranceTest.php | 11 +++++++++++ 2 files changed, 12 insertions(+) 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 [