// Code generated by mockery v2.10.4. DO NOT EDIT.

// Regenerate this file using `make store-mocks`.

package mocks

import (
	model "github.com/mattermost/mattermost-server/v6/model"
	mock "github.com/stretchr/testify/mock"
)

// PostAcknowledgementStore is an autogenerated mock type for the PostAcknowledgementStore type
type PostAcknowledgementStore struct {
	mock.Mock
}

// Delete provides a mock function with given fields: acknowledgement
func (_m *PostAcknowledgementStore) Delete(acknowledgement *model.PostAcknowledgement) error {
	ret := _m.Called(acknowledgement)

	var r0 error
	if rf, ok := ret.Get(0).(func(*model.PostAcknowledgement) error); ok {
		r0 = rf(acknowledgement)
	} else {
		r0 = ret.Error(0)
	}

	return r0
}

// Get provides a mock function with given fields: postID, userID
func (_m *PostAcknowledgementStore) Get(postID string, userID string) (*model.PostAcknowledgement, error) {
	ret := _m.Called(postID, userID)

	var r0 *model.PostAcknowledgement
	if rf, ok := ret.Get(0).(func(string, string) *model.PostAcknowledgement); ok {
		r0 = rf(postID, userID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*model.PostAcknowledgement)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string, string) error); ok {
		r1 = rf(postID, userID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetForPost provides a mock function with given fields: postID
func (_m *PostAcknowledgementStore) GetForPost(postID string) ([]*model.PostAcknowledgement, error) {
	ret := _m.Called(postID)

	var r0 []*model.PostAcknowledgement
	if rf, ok := ret.Get(0).(func(string) []*model.PostAcknowledgement); ok {
		r0 = rf(postID)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*model.PostAcknowledgement)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string) error); ok {
		r1 = rf(postID)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// GetForPosts provides a mock function with given fields: postIds
func (_m *PostAcknowledgementStore) GetForPosts(postIds []string) ([]*model.PostAcknowledgement, error) {
	ret := _m.Called(postIds)

	var r0 []*model.PostAcknowledgement
	if rf, ok := ret.Get(0).(func([]string) []*model.PostAcknowledgement); ok {
		r0 = rf(postIds)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).([]*model.PostAcknowledgement)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func([]string) error); ok {
		r1 = rf(postIds)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}

// Save provides a mock function with given fields: postID, userID, acknowledgedAt
func (_m *PostAcknowledgementStore) Save(postID string, userID string, acknowledgedAt int64) (*model.PostAcknowledgement, error) {
	ret := _m.Called(postID, userID, acknowledgedAt)

	var r0 *model.PostAcknowledgement
	if rf, ok := ret.Get(0).(func(string, string, int64) *model.PostAcknowledgement); ok {
		r0 = rf(postID, userID, acknowledgedAt)
	} else {
		if ret.Get(0) != nil {
			r0 = ret.Get(0).(*model.PostAcknowledgement)
		}
	}

	var r1 error
	if rf, ok := ret.Get(1).(func(string, string, int64) error); ok {
		r1 = rf(postID, userID, acknowledgedAt)
	} else {
		r1 = ret.Error(1)
	}

	return r0, r1
}
