fix: mocks and tests

This commit is contained in:
Fabiennne 2020-10-28 13:53:04 +01:00
parent f47fb07c0f
commit e13f3a0f46
4 changed files with 22 additions and 15 deletions

View file

@ -26,7 +26,7 @@ func NewClientExpectAny(t *testing.T, appType op.ApplicationType) op.Client {
func(id string) string {
return "login?id=" + id
})
m.EXPECT().AllowedScopes().AnyTimes().Return(nil)
m.EXPECT().IsScopeAllowed(gomock.Any()).AnyTimes().Return(false)
return c
}