public function testInvalidSyncCriteriaException(): void
{ $exception = ApiException::
invalidSyncCriteriaException('operationKey'
);
static::
assertEquals(ApiException::API_INVALID_SYNC_CRITERIA_EXCEPTION,
$exception->
getErrorCode());
static::
assertEquals('Sync operation operationKey, with action "delete", requires a criteria with at least one filter and can only be applied for mapping entities',
$exception->
getMessage());
} public function testInvalidSyncOperationException(): void
{ $exception = ApiException::
invalidSyncOperationException('message'
);
static::
assertEquals(ApiException::API_INVALID_SYNC_OPERATION_EXCEPTION,
$exception->
getErrorCode());
static::
assertEquals('message',
$exception->
getMessage());
} public function testResolverNotFoundException(): void
{ $exception = ApiException::
resolverNotFoundException('name'
);
static::
assertEquals(ApiException::API_RESOLVER_NOT_FOUND_EXCEPTION,
$exception->
getErrorCode());
static::
assertEquals('Foreign key resolver for key name not found',
$exception->
getMessage());
}