NewUserWithDomain creates a new user with a random email with the given email domain in the fixture's admin service.
(t *testing.T, domain string)
| 240 | |
| 241 | // NewUserWithDomain creates a new user with a random email with the given email domain in the fixture's admin service. |
| 242 | func (f *Fixture) NewUserWithDomain(t *testing.T, domain string) (*database.User, *client.Client) { |
| 243 | data := randomBytes() |
| 244 | emailAddr := fmt.Sprintf("test-%x@%s", data, domain) |
| 245 | return f.NewUserWithEmail(t, emailAddr) |
| 246 | } |
| 247 | |
| 248 | // NewUserWithEmail creates a new user with the given email in the fixture's admin service. |
| 249 | func (f *Fixture) NewUserWithEmail(t *testing.T, emailAddr string) (*database.User, *client.Client) { |