()
| 146 | } |
| 147 | |
| 148 | func (s *UserTestSuite) TestCreateUserMissingUsernameEmail() { |
| 149 | // this is already created in `SetupTest()` |
| 150 | s.Fixtures.NewUserParams.Username = "" |
| 151 | |
| 152 | _, err := s.Store.CreateUser(context.Background(), s.Fixtures.NewUserParams) |
| 153 | |
| 154 | s.Require().NotNil(err) |
| 155 | s.Require().Equal(("missing username, password or email"), err.Error()) |
| 156 | } |
| 157 | |
| 158 | func (s *UserTestSuite) TestCreateUserUsernameAlreadyExist() { |
| 159 | s.Fixtures.NewUserParams.Username = "test-username-1" |
nothing calls this directly
no test coverage detected