summaryrefslogtreecommitdiffstats
path: root/store/storetest/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'store/storetest/store.go')
-rw-r--r--store/storetest/store.go63
1 files changed, 34 insertions, 29 deletions
diff --git a/store/storetest/store.go b/store/storetest/store.go
index 55545decb..367c5f441 100644
--- a/store/storetest/store.go
+++ b/store/storetest/store.go
@@ -19,29 +19,30 @@ func NewStoreChannel(result store.StoreResult) store.StoreChannel {
// Store can be used to provide mock stores for testing.
type Store struct {
- TeamStore mocks.TeamStore
- ChannelStore mocks.ChannelStore
- PostStore mocks.PostStore
- UserStore mocks.UserStore
- AuditStore mocks.AuditStore
- ClusterDiscoveryStore mocks.ClusterDiscoveryStore
- ComplianceStore mocks.ComplianceStore
- SessionStore mocks.SessionStore
- OAuthStore mocks.OAuthStore
- SystemStore mocks.SystemStore
- WebhookStore mocks.WebhookStore
- CommandStore mocks.CommandStore
- CommandWebhookStore mocks.CommandWebhookStore
- PreferenceStore mocks.PreferenceStore
- LicenseStore mocks.LicenseStore
- TokenStore mocks.TokenStore
- EmojiStore mocks.EmojiStore
- StatusStore mocks.StatusStore
- FileInfoStore mocks.FileInfoStore
- ReactionStore mocks.ReactionStore
- JobStore mocks.JobStore
- UserAccessTokenStore mocks.UserAccessTokenStore
- PluginStore mocks.PluginStore
+ TeamStore mocks.TeamStore
+ ChannelStore mocks.ChannelStore
+ PostStore mocks.PostStore
+ UserStore mocks.UserStore
+ AuditStore mocks.AuditStore
+ ClusterDiscoveryStore mocks.ClusterDiscoveryStore
+ ComplianceStore mocks.ComplianceStore
+ SessionStore mocks.SessionStore
+ OAuthStore mocks.OAuthStore
+ SystemStore mocks.SystemStore
+ WebhookStore mocks.WebhookStore
+ CommandStore mocks.CommandStore
+ CommandWebhookStore mocks.CommandWebhookStore
+ PreferenceStore mocks.PreferenceStore
+ LicenseStore mocks.LicenseStore
+ TokenStore mocks.TokenStore
+ EmojiStore mocks.EmojiStore
+ StatusStore mocks.StatusStore
+ FileInfoStore mocks.FileInfoStore
+ ReactionStore mocks.ReactionStore
+ JobStore mocks.JobStore
+ UserAccessTokenStore mocks.UserAccessTokenStore
+ PluginStore mocks.PluginStore
+ ChannelMemberHistoryStore mocks.ChannelMemberHistoryStore
}
func (s *Store) Team() store.TeamStore { return &s.TeamStore }
@@ -67,12 +68,15 @@ func (s *Store) Reaction() store.ReactionStore { return &s.React
func (s *Store) Job() store.JobStore { return &s.JobStore }
func (s *Store) UserAccessToken() store.UserAccessTokenStore { return &s.UserAccessTokenStore }
func (s *Store) Plugin() store.PluginStore { return &s.PluginStore }
-func (s *Store) MarkSystemRanUnitTests() { /* do nothing */ }
-func (s *Store) Close() { /* do nothing */ }
-func (s *Store) DropAllTables() { /* do nothing */ }
-func (s *Store) TotalMasterDbConnections() int { return 1 }
-func (s *Store) TotalReadDbConnections() int { return 1 }
-func (s *Store) TotalSearchDbConnections() int { return 1 }
+func (s *Store) ChannelMemberHistory() store.ChannelMemberHistoryStore {
+ return &s.ChannelMemberHistoryStore
+}
+func (s *Store) MarkSystemRanUnitTests() { /* do nothing */ }
+func (s *Store) Close() { /* do nothing */ }
+func (s *Store) DropAllTables() { /* do nothing */ }
+func (s *Store) TotalMasterDbConnections() int { return 1 }
+func (s *Store) TotalReadDbConnections() int { return 1 }
+func (s *Store) TotalSearchDbConnections() int { return 1 }
func (s *Store) AssertExpectations(t mock.TestingT) bool {
return mock.AssertExpectationsForObjects(t,
@@ -98,6 +102,7 @@ func (s *Store) AssertExpectations(t mock.TestingT) bool {
&s.ReactionStore,
&s.JobStore,
&s.UserAccessTokenStore,
+ &s.ChannelMemberHistoryStore,
&s.PluginStore,
)
}