aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-31 10:56:12 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-08-03 12:35:03 +0100
commit2e761c6825d76944fd579c98cd0a222d420ea02d (patch)
tree7ab1f431f08e668937d7b4acaee1a48e6d60960d /t/app/controller
parent7b712ed5a9e78158dbc2b43f5df4ff8fc05ed37c (diff)
Lowercase contact email when looking for user.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/contact.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t
index d6e56e7cc..01e8b0886 100644
--- a/t/app/controller/contact.t
+++ b/t/app/controller/contact.t
@@ -382,7 +382,7 @@ for my $test (
$mech->clear_emails_ok;
$mech->get_ok('/contact');
- $test->{fields}{em} = $user->email;
+ $test->{fields}{em} = ucfirst $user->email; # Check case
$mech->submit_form_ok( { with_fields => $test->{fields} } );
my $email = $mech->get_email;