/**
* @covers \Shopware\Core\Framework\DataAbstractionLayer\DataAbstractionLayerException
*
* @internal
*/
#[Package('core')]
class DataAbstractionLayerExceptionTest extends TestCase
{ public function testInvalidCronIntervalFormat(): void
{ $e = DataAbstractionLayerException::
invalidCronIntervalFormat('foo'
);
static::
assertSame(Response::HTTP_BAD_REQUEST,
$e->
getStatusCode());
static::
assertSame(DataAbstractionLayerException::INVALID_CRON_INTERVAL_CODE,
$e->
getErrorCode());
static::
assertSame('Unknown or bad CronInterval format "foo".',
$e->
getMessage());
} public function testInvalidDateIntervalFormat(): void
{ $e = DataAbstractionLayerException::
invalidDateIntervalFormat('foo'
);
static::
assertSame(Response::HTTP_BAD_REQUEST,
$e->
getStatusCode());