public function testUnsupportedOperation(): void
{ $exception = ApiException::
unsupportedOperation('invalid_operation'
);
static::
assertEquals(ApiException::API_UNSUPPORTED_OPERATION_EXCEPTION,
$exception->
getErrorCode());
static::
assertEquals('Unsupported invalid_operation operation.',
$exception->
getMessage());
} public function testInvalidVersionId(): void
{ $exception = ApiException::
invalidVersionId('invalid_version_id'
);
static::
assertEquals(ApiException::API_INVALID_VERSION_ID,
$exception->
getErrorCode());
static::
assertEquals('versionId invalid_version_id is not a valid uuid.',
$exception->
getMessage());
} public function testInvalidApiType(): void
{ $exception = ApiException::
invalidApiType('invalid_type'
);
static::
assertEquals(ApiException::API_TYPE_PARAMETER_INVALID,
$exception->
getErrorCode());
static::
assertEquals('Parameter type invalid_type is invalid.',
$exception->
getMessage());
}