diff options
author | Martin Wright <martin@mynameismartin.com> | 2017-07-07 09:38:11 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-07-07 11:43:33 +0100 |
commit | 6bd4d17176045ccaa211f99265f06466e1b4aece (patch) | |
tree | 4b68990978f4d8dbbeabb8f1b6142433833a8275 /t | |
parent | 6a0f8086f44dfe0d2d12b0a97a491f8c6ebe3ca2 (diff) |
Add an optional phone field to the contact form.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/contact.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t index d98d81868..0e87eb4cc 100644 --- a/t/app/controller/contact.t +++ b/t/app/controller/contact.t @@ -210,6 +210,7 @@ for my $test ( # we santise this when we submit so need to remove it delete $test->{fields}->{id} if $test->{fields}->{id} and $test->{fields}->{id} eq 'invalid'; + $test->{fields}->{'extra.phone'} = ''; is_deeply $mech->visible_form_values, $test->{fields}, 'form values'; }; } @@ -323,6 +324,7 @@ for my $test ( # we santise this when we submit so need to remove it delete $test->{fields}->{id} if $test->{fields}->{id} and $test->{fields}->{id} eq 'invalid'; + $test->{fields}->{'extra.phone'} = ''; is_deeply $mech->visible_form_values, $test->{fields}, 'form values'; if ( $test->{fields}->{dest} and $test->{fields}->{dest} eq 'update' ) { |