grafana/pkg/services/teamguardian/manager/service_mock.go
Selene 32ed680fc2
Team Guardian: Refactor it to remove the bus dependency (#43058)
* Refactor team guardian to avoid to use bus

* Fix lint

* Fix lint
2022-01-07 13:38:00 +01:00

18 lines
350 B
Go

package manager
import (
"context"
"github.com/grafana/grafana/pkg/models"
"github.com/stretchr/testify/mock"
)
type TeamGuardianMock struct {
mock.Mock
}
func (t *TeamGuardianMock) CanAdmin(ctx context.Context, orgId int64, teamId int64, user *models.SignedInUser) error {
args := t.Called(ctx, orgId, teamId, user)
return args.Error(0)
}