public function testResourceNotFound(): void
{ $exception = ApiException::
resourceNotFound('order',
[]);
static::
assertInstanceOf(ResourceNotFoundException::
class,
$exception);
} 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());
}