diff options
author | Struan Donald <struan@exo.org.uk> | 2018-10-03 14:44:33 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2018-10-09 11:10:37 +0100 |
commit | 675ec6e6d741be456b287479ea517cc46c4270be (patch) | |
tree | 4c5f2f0672ab5f2f63f87273ce46e2a95518fa14 /t | |
parent | 66da7757654bef6bbbc92704552571bfe0d390ca (diff) |
[Oxfordshire] allow searching on ENQ customer_reference
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/oxfordshire.t | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/cobrand/oxfordshire.t b/t/cobrand/oxfordshire.t index 19a82742a..cec8f53b3 100644 --- a/t/cobrand/oxfordshire.t +++ b/t/cobrand/oxfordshire.t @@ -186,6 +186,20 @@ subtest 'Reports are marked as inspected correctly' => sub { }; }; +subtest 'can use customer reference to search for reports' => sub { + FixMyStreet::override_config { + ALLOWED_COBRANDS => [ 'oxfordshire' ], + MAPIT_URL => 'http://mapit.uk/', + }, sub { + my $problem = $problems[0]; + $problem->set_extra_metadata( customer_reference => 'ENQ12456' ); + $problem->update; + + $mech->get_ok('/around?pc=ENQ12456'); + is $mech->uri->path, '/report/' . $problem->id, 'redirects to report'; + }; +}; + END { done_testing(); } |