diff --git a/pkg/identityserver/storetest/user_store.go b/pkg/identityserver/storetest/user_store.go index 52410a9629..69c5284400 100644 --- a/pkg/identityserver/storetest/user_store.go +++ b/pkg/identityserver/storetest/user_store.go @@ -75,6 +75,11 @@ func (st *StoreTest) TestUserStoreCRUD(t *T) { ConsolePreferences: &ttnpb.UserConsolePreferences{ ConsoleTheme: ttnpb.ConsoleTheme_CONSOLE_THEME_LIGHT, }, + EmailNotificationPreferences: &ttnpb.EmailNotificationPreferences{ + Types: []ttnpb.NotificationType{ + ttnpb.NotificationType_API_KEY_CREATED, + }, + }, }) if a.So(err, should.BeNil) && a.So(created, should.NotBeNil) { @@ -101,6 +106,11 @@ func (st *StoreTest) TestUserStoreCRUD(t *T) { ) a.So(*ttnpb.StdTime(created.CreatedAt), should.HappenWithin, 5*time.Second, start) a.So(*ttnpb.StdTime(created.UpdatedAt), should.HappenWithin, 5*time.Second, start) + a.So(created.EmailNotificationPreferences, should.Resemble, &ttnpb.EmailNotificationPreferences{ + Types: []ttnpb.NotificationType{ + ttnpb.NotificationType_API_KEY_CREATED, + }, + }) } })