mirror of https://github.com/gophish/gophish
Added FromEmail Test
parent
c55dd9effa
commit
a1e6566284
|
@ -39,6 +39,7 @@ func (s *ModelsSuite) TestNewTemplateContext(c *check.C) {
|
||||||
TrackingURL: fmt.Sprintf("%s/track?rid=%s", ctx.URL, r.RId),
|
TrackingURL: fmt.Sprintf("%s/track?rid=%s", ctx.URL, r.RId),
|
||||||
From: "From Address",
|
From: "From Address",
|
||||||
RId: r.RId,
|
RId: r.RId,
|
||||||
|
FromEmail: "from@example.com",
|
||||||
}
|
}
|
||||||
expected.Tracker = "<img alt='' style='display: none' src='" + expected.TrackingURL + "'/>"
|
expected.Tracker = "<img alt='' style='display: none' src='" + expected.TrackingURL + "'/>"
|
||||||
got, err := NewPhishingTemplateContext(ctx, r.BaseRecipient, r.RId)
|
got, err := NewPhishingTemplateContext(ctx, r.BaseRecipient, r.RId)
|
||||||
|
|
Loading…
Reference in New Issue