()
| 66 | } |
| 67 | |
| 68 | func (ts *HooksTestSuite) SetupTest() { |
| 69 | models.TruncateAll(ts.API.db) |
| 70 | u, err := models.NewUser("123456789", "testemail@gmail.com", "securetestpassword", ts.Config.JWT.Aud, nil) |
| 71 | require.NoError(ts.T(), err, "Error creating test user model") |
| 72 | require.NoError(ts.T(), ts.API.db.Create(u), "Error saving new test user") |
| 73 | ts.TestUser = u |
| 74 | } |
| 75 | |
| 76 | func (ts *HooksTestSuite) TestRunHTTPHook() { |
| 77 | // setup mock requests for hooks |
nothing calls this directly
no test coverage detected