@@ -1477,6 +1477,20 @@ func (s *MethodTestSuite) TestUser() {
14771477dbm .EXPECT ().UpdateUserTerminalFont (gomock .Any (),arg ).Return (uc ,nil ).AnyTimes ()
14781478check .Args (arg ).Asserts (u ,policy .ActionUpdatePersonal ).Returns (uc )
14791479}))
1480+ s .Run ("GetUserTaskNotificationAlertDismissed" ,s .Mocked (func (dbm * dbmock.MockStore ,faker * gofakeit.Faker ,check * expects ) {
1481+ u := testutil .Fake (s .T (),faker , database.User {})
1482+ dbm .EXPECT ().GetUserByID (gomock .Any (),u .ID ).Return (u ,nil ).AnyTimes ()
1483+ dbm .EXPECT ().GetUserTaskNotificationAlertDismissed (gomock .Any (),u .ID ).Return ("false" ,nil ).AnyTimes ()
1484+ check .Args (u .ID ).Asserts (u ,policy .ActionReadPersonal ).Returns ("false" )
1485+ }))
1486+ s .Run ("UpdateUserTaskNotificationAlertDismissed" ,s .Mocked (func (dbm * dbmock.MockStore ,faker * gofakeit.Faker ,check * expects ) {
1487+ user := testutil .Fake (s .T (),faker , database.User {})
1488+ userConfig := database.UserConfig {UserID :user .ID ,Key :"task_notification_alert_dismissed" ,Value :"false" }
1489+ arg := database.UpdateUserTaskNotificationAlertDismissedParams {UserID :user .ID ,TaskNotificationAlertDismissed :userConfig .Value }
1490+ dbm .EXPECT ().GetUserByID (gomock .Any (),user .ID ).Return (user ,nil ).AnyTimes ()
1491+ dbm .EXPECT ().UpdateUserTaskNotificationAlertDismissed (gomock .Any (),arg ).Return (userConfig ,nil ).AnyTimes ()
1492+ check .Args (arg ).Asserts (user ,policy .ActionUpdatePersonal ).Returns (userConfig )
1493+ }))
14801494s .Run ("UpdateUserStatus" ,s .Mocked (func (dbm * dbmock.MockStore ,faker * gofakeit.Faker ,check * expects ) {
14811495u := testutil .Fake (s .T (),faker , database.User {})
14821496arg := database.UpdateUserStatusParams {ID :u .ID ,Status :u .Status ,UpdatedAt :u .UpdatedAt }