diff options
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(); } |