public function testInvalidSerializerFieldLegacy(): void
{ $e = DataAbstractionLayerException::
invalidSerializerField(FkField::
class,
new IdField('foo', 'foo'
));
static::
assertInstanceOf(InvalidSerializerFieldException::
class,
$e);
} public function testInvalidCriteriaIds(): void
{ $e = DataAbstractionLayerException::
invalidCriteriaIds(['foo'
], 'bar'
);
static::
assertSame(Response::HTTP_INTERNAL_SERVER_ERROR,
$e->
getStatusCode());
static::
assertSame(DataAbstractionLayerException::INVALID_CRITERIA_IDS,
$e->
getErrorCode());
} public function testInvalidApiCriteriaIds(): void
{ $e = DataAbstractionLayerException::
invalidApiCriteriaIds( DataAbstractionLayerException::
invalidCriteriaIds(['foo'
], 'bar'
) );