Skip to content

Commit

Permalink
fix: prevent test failing in older phpunit
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen committed Mar 5, 2025
1 parent 567fc3d commit d479f11
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/Model/Consignment/ConsignmentShipmentOptionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d479f11

Please sign in to comment.