@@ -270,13 +270,13 @@ func (s *MethodTestSuite) TestAPIKey() {
270
270
a := testutil .Fake (s .T (), faker , database.ExternalAuthLink {})
271
271
dbm .EXPECT ().GetExternalAuthLink (gomock .Any (), database.GetExternalAuthLinkParams {ProviderID : a .ProviderID , UserID : a .UserID }).Return (a , nil ).AnyTimes ()
272
272
dbm .EXPECT ().DeleteExternalAuthLink (gomock .Any (), database.DeleteExternalAuthLinkParams {ProviderID : a .ProviderID , UserID : a .UserID }).Return (nil ).AnyTimes ()
273
- check .Args (database.DeleteExternalAuthLinkParams {ProviderID : a .ProviderID , UserID : a .UserID }).Asserts (rbac . ResourceUserObject ( a . UserID ) , policy .ActionUpdatePersonal ).Returns ()
273
+ check .Args (database.DeleteExternalAuthLinkParams {ProviderID : a .ProviderID , UserID : a .UserID }).Asserts (a , policy .ActionUpdatePersonal ).Returns ()
274
274
}))
275
275
s .Run ("GetExternalAuthLinksByUserID" , s .Mocked (func (dbm * dbmock.MockStore , faker * gofakeit.Faker , check * expects ) {
276
276
a := testutil .Fake (s .T (), faker , database.ExternalAuthLink {})
277
277
b := testutil .Fake (s .T (), faker , database.ExternalAuthLink {UserID : a .UserID })
278
278
dbm .EXPECT ().GetExternalAuthLinksByUserID (gomock .Any (), a .UserID ).Return ([]database.ExternalAuthLink {a , b }, nil ).AnyTimes ()
279
- check .Args (a .UserID ).Asserts (rbac . ResourceUserObject ( a . UserID ) , policy .ActionReadPersonal , rbac . ResourceUserObject ( b . UserID ) , policy .ActionReadPersonal )
279
+ check .Args (a .UserID ).Asserts (a , policy .ActionReadPersonal , b , policy .ActionReadPersonal )
280
280
}))
281
281
}
282
282
0 commit comments