()
| 203 | } |
| 204 | |
| 205 | func (s *UserTestSuite) TestHasAdminUser() { |
| 206 | // create an admin user |
| 207 | s.Fixtures.NewUserParams.IsAdmin = true |
| 208 | _, err := s.Store.CreateUser(context.Background(), s.Fixtures.NewUserParams) |
| 209 | s.Require().Nil(err) |
| 210 | |
| 211 | // check again if the store has any admin users |
| 212 | hasAdmin := s.Store.HasAdminUser(context.Background()) |
| 213 | s.Require().True(hasAdmin) |
| 214 | } |
| 215 | |
| 216 | func (s *UserTestSuite) TestGetUser() { |
| 217 | user, err := s.Store.GetUser(context.Background(), s.Fixtures.Users[0].Username) |
nothing calls this directly
no test coverage detected