public function testInvalidFilterQuery(): void
{ $e = DataAbstractionLayerException::
invalidFilterQuery('foo', 'baz'
);
static::
assertInstanceOf(InvalidFilterQueryException::
class,
$e);
static::
assertEquals('foo',
$e->
getMessage());
static::
assertEquals('baz',
$e->
getPath());
} public function testCannotCreateNewVersion(): void
{ $e = DataAbstractionLayerException::
cannotCreateNewVersion('product', 'product-id'
);
static::
assertEquals(Response::HTTP_BAD_REQUEST,
$e->
getStatusCode());
static::
assertEquals('Cannot create new version. product by id product-id not found.',
$e->
getMessage());
static::
assertEquals(DataAbstractionLayerException::CANNOT_CREATE_NEW_VERSION,
$e->
getErrorCode());
} /**
* @DisabledFeatures("v6.6.0.0")
*
* @deprecated tag:v6.6.0.0 - will be removed
*/