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'
) );
static::
assertSame(Response::HTTP_BAD_REQUEST,
$e->
getStatusCode());
static::
assertSame(DataAbstractionLayerException::INVALID_API_CRITERIA_IDS,
$e->
getErrorCode());
} public function testInvalidLanguageId(): void
{ $e = DataAbstractionLayerException::
invalidLanguageId('foo'
);