diff options
author | Dave Arter <davea@mysociety.org> | 2019-06-04 15:08:58 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-06-04 15:08:58 +0100 |
commit | f4cbb3b53941ae3cb2816d2b26bf3b6f9db0ca2a (patch) | |
tree | aec402df92dc11e160063115af6b9555a7dd0361 /t/app/controller/around.t | |
parent | 500d4fe948bae1ee5a2d4dab8820c1d0ea9424c2 (diff) | |
parent | 3139d214cdcb606c668793384559480a96819dfa (diff) |
Merge branch 'hounslow-reviewed'
Diffstat (limited to 't/app/controller/around.t')
-rw-r--r-- | t/app/controller/around.t | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t index 5ef37f197..829d78ca3 100644 --- a/t/app/controller/around.t +++ b/t/app/controller/around.t @@ -100,6 +100,16 @@ subtest 'check lookup by reference' => sub { is $mech->uri->path, "/report/$id", "redirected to report page"; }; +subtest 'check lookup by reference does not show non_public reports' => sub { + $edinburgh_problems[0]->update({ + non_public => 1 + }); + my $id = $edinburgh_problems[0]->id; + $mech->get_ok('/'); + $mech->submit_form_ok( { with_fields => { pc => "ref:$id" } }, 'non_public ref'); + $mech->content_contains('Searching found no reports'); +}; + subtest 'check non public reports are not displayed on around page' => sub { $mech->get_ok('/'); FixMyStreet::override_config { |