2019-01-11 18:43:04 +00:00
|
|
|
// Code generated by mockery v1.0.0. DO NOT EDIT.
|
|
|
|
|
|
|
|
package mocks
|
|
|
|
|
2019-07-22 14:17:11 +00:00
|
|
|
import (
|
|
|
|
"github.com/stretchr/testify/mock"
|
|
|
|
|
|
|
|
"gitlab.bertha.cloud/partitio/Nextcloud-Partitio/gonextcloud"
|
|
|
|
)
|
2019-01-11 18:43:04 +00:00
|
|
|
|
|
|
|
// Notifications is an autogenerated mock type for the Notifications type
|
|
|
|
type Notifications struct {
|
|
|
|
mock.Mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// AdminAvailable provides a mock function with given fields:
|
|
|
|
func (_m *Notifications) AdminAvailable() error {
|
|
|
|
ret := _m.Called()
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Available provides a mock function with given fields:
|
|
|
|
func (_m *Notifications) Available() error {
|
|
|
|
ret := _m.Called()
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Create provides a mock function with given fields: userID, title, message
|
|
|
|
func (_m *Notifications) Create(userID string, title string, message string) error {
|
|
|
|
ret := _m.Called(userID, title, message)
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func(string, string, string) error); ok {
|
|
|
|
r0 = rf(userID, title, message)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Delete provides a mock function with given fields: id
|
|
|
|
func (_m *Notifications) Delete(id int) error {
|
|
|
|
ret := _m.Called(id)
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func(int) error); ok {
|
|
|
|
r0 = rf(id)
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// DeleteAll provides a mock function with given fields:
|
|
|
|
func (_m *Notifications) DeleteAll() error {
|
|
|
|
ret := _m.Called()
|
|
|
|
|
|
|
|
var r0 error
|
|
|
|
if rf, ok := ret.Get(0).(func() error); ok {
|
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
r0 = ret.Error(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get provides a mock function with given fields: id
|
2019-07-22 14:17:11 +00:00
|
|
|
func (_m *Notifications) Get(id int) (gonextcloud.Notification, error) {
|
2019-01-11 18:43:04 +00:00
|
|
|
ret := _m.Called(id)
|
|
|
|
|
2019-07-22 14:17:11 +00:00
|
|
|
var r0 gonextcloud.Notification
|
|
|
|
if rf, ok := ret.Get(0).(func(int) gonextcloud.Notification); ok {
|
2019-01-11 18:43:04 +00:00
|
|
|
r0 = rf(id)
|
|
|
|
} else {
|
2019-07-22 14:17:11 +00:00
|
|
|
r0 = ret.Get(0).(gonextcloud.Notification)
|
2019-01-11 18:43:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func(int) error); ok {
|
|
|
|
r1 = rf(id)
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|
|
|
|
|
|
|
|
// List provides a mock function with given fields:
|
2019-07-22 14:17:11 +00:00
|
|
|
func (_m *Notifications) List() ([]gonextcloud.Notification, error) {
|
2019-01-11 18:43:04 +00:00
|
|
|
ret := _m.Called()
|
|
|
|
|
2019-07-22 14:17:11 +00:00
|
|
|
var r0 []gonextcloud.Notification
|
|
|
|
if rf, ok := ret.Get(0).(func() []gonextcloud.Notification); ok {
|
2019-01-11 18:43:04 +00:00
|
|
|
r0 = rf()
|
|
|
|
} else {
|
|
|
|
if ret.Get(0) != nil {
|
2019-07-22 14:17:11 +00:00
|
|
|
r0 = ret.Get(0).([]gonextcloud.Notification)
|
2019-01-11 18:43:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var r1 error
|
|
|
|
if rf, ok := ret.Get(1).(func() error); ok {
|
|
|
|
r1 = rf()
|
|
|
|
} else {
|
|
|
|
r1 = ret.Error(1)
|
|
|
|
}
|
|
|
|
|
|
|
|
return r0, r1
|
|
|
|
}
|