hunk.code_window: }
   // ConfirmSelfHostedExpansion provides a mock function with given fields: req, requesterEmail
   func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedExpansionConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) {
   	ret := _m.Called(req, requesterEmail)
   	var r0 *model.SelfHostedSignupConfirmResponse
  
hunk.labels: keep keep keep replace keep keep keep
hunk.after_edit: func (_m *CloudInterface) ConfirmSelfHostedExpansion(req model.SelfHostedConfirmPaymentMethodRequest, requesterEmail string) (*model.SelfHostedSignupConfirmResponse, error) {
  
hunk.file_path: server/channels/einterfaces/mocks/CloudInterface.go
hunk.type: replace
file: // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
  // See LICENSE.txt for license information.
  
  import React from 'react';
  import * as redux from 'react-redux';
  
  import {mountWithIntl} from 'tests/helpers/intl-test-helper';
  import mockStore from 'tests/test_store';
  
  import SuccessModal from './error';
  jest.mock('components/common/hooks/useOpenSalesLink', () => ({
      __esModule: true,
      default: () => () => true,
  }));
  
  describe('components/pricing_modal/downgrade_team_removal_modal', () => {
      beforeEach(() => {
          jest.spyOn(redux, 'useDispatch').mockImplementation(
              jest.fn(() => jest.fn()),
          );
      });
  
      const state = {
          entities: {
              cloud: {
                  subscription: {
                      is_free_trial: 'false',
                      trial_end_at: 0,
                      product_id: 'prod_starter',
                  },
              },
          },
          views: {
              modals: {
                  modalState: {
                      success_modal: {
                          open: 'true',
                      },
                  },
              },
          },
      };
  
      test('matches snapshot', () => {
          const store = mockStore(state);
          const wrapper = mountWithIntl(
              <redux.Provider store={store}>
                  <SuccessModal/>
              </redux.Provider>,
          );
          expect(wrapper).toMatchSnapshot();
      });
  });
  