From d479f11e353fc8ae20974474a160bfab75108171 Mon Sep 17 00:00:00 2001 From: Joeri van Veen Date: Wed, 5 Mar 2025 11:32:28 +0100 Subject: [PATCH] fix: prevent test failing in older phpunit --- test/Model/Consignment/ConsignmentShipmentOptionsTest.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/Model/Consignment/ConsignmentShipmentOptionsTest.php b/test/Model/Consignment/ConsignmentShipmentOptionsTest.php index d2b208ef..b7374c83 100644 --- a/test/Model/Consignment/ConsignmentShipmentOptionsTest.php +++ b/test/Model/Consignment/ConsignmentShipmentOptionsTest.php @@ -358,13 +358,9 @@ public function testReferenceIdentifier(array $testData): void */ public function testUnrelatedReturn(array $testData): void { - /** - * for returns without the property printerless_return set, expect the api error - * ‘3759 - - Shipment does not have a printerless return label’ - */ if (!isset($testData['printerless_return'])) { $this->expectException(ApiException::class); - $this->expectExceptionMessageMatches('/3759 */'); + $this->expectExceptionMessage('3759 - - Shipment does not have a printerless return label'); } $collection = $this->generateCollection($testData);