#[Package('buyers-experience')]
class SeoExceptionTest extends TestCase
{ public function testInvalidSalesChannelId(): void
{ $salesChannelId = 'invalid-sales-channel-id';
$exception = SeoException::
invalidSalesChannelId($salesChannelId);
static::
assertInstanceOf(InvalidSalesChannelIdException::
class,
$exception);
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
} public function testSalesChannelIdParameterIsMissing(): void
{ $exception = SeoException::
salesChannelIdParameterIsMissing();
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$exception->
getStatusCode());
static::
assertEquals(SeoException::SALES_CHANNEL_ID_PARAMETER_IS_MISSING,
$exception->
getErrorCode());