()
| 86 | } |
| 87 | |
| 88 | func (ts *UserTestSuite) TestFindUserByConfirmationToken() { |
| 89 | u := ts.createUser() |
| 90 | tokenHash := "test_confirmation_token" |
| 91 | require.NoError(ts.T(), CreateOneTimeToken(ts.db, u.ID, "relates_to not used", tokenHash, ConfirmationToken)) |
| 92 | |
| 93 | n, err := FindUserByConfirmationToken(ts.db, tokenHash) |
| 94 | require.NoError(ts.T(), err) |
| 95 | require.Equal(ts.T(), u.ID, n.ID) |
| 96 | } |
| 97 | |
| 98 | func (ts *UserTestSuite) TestFindUserByEmailAndAudience() { |
| 99 | u := ts.createUser() |
nothing calls this directly
no test coverage detected