NewWithUser is similar to New, but also creates a new user and authenticates the Fixture with a token for that user.
(t *testing.T, adm *testadmin.Fixture)
| 35 | |
| 36 | // NewWithUser is similar to New, but also creates a new user and authenticates the Fixture with a token for that user. |
| 37 | func NewWithUser(t *testing.T, adm *testadmin.Fixture) *Fixture { |
| 38 | _, c := adm.NewUser(t) |
| 39 | return New(t, adm, c.Token) |
| 40 | } |
| 41 | |
| 42 | // Result represents the output of a CLI invocation. |
| 43 | type Result struct { |