public function testDeleteLiveVersion(): void
{ $exception = ApiException::
deleteLiveVersion();
static::
assertInstanceOf(LiveVersionDeleteException::
class,
$exception);
} 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());
}