public function testCustomerIdParameterIsMissing(): void
{ $exception = ApiException::
customerIdParameterIsMissing();
static::
assertEquals(ApiException::API_CUSTOMER_ID_PARAMETER_IS_MISSING,
$exception->
getErrorCode());
static::
assertEquals('Parameter "customerId" is missing.',
$exception->
getMessage());
} public function testShippingCostsParameterIsMissing(): void
{ $exception = ApiException::
shippingCostsParameterIsMissing();
static::
assertEquals(ApiException::API_SHIPPING_COSTS_PARAMETER_IS_MISSING,
$exception->
getErrorCode());
static::
assertEquals('Parameter "shippingCosts" is missing.',
$exception->
getMessage());
} public function testUnableGenerateBundle(): void
{ $exception = ApiException::
unableGenerateBundle('bundleName'
);
static::
assertEquals(ApiException::API_UNABLE_GENERATE_BUNDLE,
$exception->
getErrorCode());
static::
assertEquals('Unable to generate bundle directory for bundle "bundleName".',
$exception->
getMessage());
}