diff options
author | Dave Arter <davea@mysociety.org> | 2020-07-02 17:13:26 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-07-02 17:17:00 +0100 |
commit | b34ce0e405e10ee9f413a78c9c097351695ac29e (patch) | |
tree | 328642062ae343261d8de82815750de1f22964a9 /t/email.t | |
parent | e96deac6ee76f792bc117ccf8096024f3b817c6c (diff) |
Allow cobrand to provide custom domain for VERP addresses
Diffstat (limited to 't/email.t')
-rw-r--r-- | t/email.t | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -14,4 +14,10 @@ my ($type, $id) = FixMyStreet::Email::check_verp_token($token); is $type, "report", 'Correct type from token'; is $id, 123, 'Correct ID from token'; +my $verpid = FixMyStreet::Email::unique_verp_id([ "report", 123 ]); +is $verpid, 'fms-report-123-8fb274c6@example.org', 'VERP id okay'; + +$verpid = FixMyStreet::Email::unique_verp_id([ "report", 123 ], "example.net"); +is $verpid, 'fms-report-123-8fb274c6@example.net', 'VERP id okay with custom domain'; + done_testing(); |