$exception = CategoryException::
categoryNotFound($categoryId);
static::
assertInstanceOf(CategoryNotFoundException::
class,
$exception);
static::
assertEquals(Response::HTTP_NOT_FOUND,
$exception->
getStatusCode());
} public function testServiceCategoryNotFoundForSalesChannel(): void
{ $salesChannelName = 'sales-channel-name';
$exception = CategoryException::
serviceCategoryNotFoundForSalesChannel($salesChannelName);
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
static::
assertEquals(CategoryException::SERVICE_CATEGORY_NOT_FOUND,
$exception->
getErrorCode());
static::
assertEquals('Service category, for sales channel sales-channel-name, is not set',
$exception->
getMessage());
static::
assertEquals(['salesChannelName' =>
$salesChannelName],
$exception->
getParameters());
} public function testFooterCategoryNotFoundForSalesChannel(): void
{ $salesChannelName = 'sales-channel-name';