diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-15 16:44:25 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-01-16 09:37:45 +0000 |
commit | bbab9afd9952b46b0f395705e06dc43fffb16b15 (patch) | |
tree | 0199aee38d00b4ce42077f314b39830ab5f0e201 /t | |
parent | 68ba122ede2e5b19f76e671f6cf910d5047686d0 (diff) |
Fix error sending `requires_inspection` reports.
has_permission_to() is called in Reports.pm and requires the cobrand to be
set on the schema. The test was manually doing this which hid the problem.
Diffstat (limited to 't')
-rw-r--r-- | t/app/sendreport/inspection_required.t | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/t/app/sendreport/inspection_required.t b/t/app/sendreport/inspection_required.t index 03c7ff944..64d6f70ee 100644 --- a/t/app/sendreport/inspection_required.t +++ b/t/app/sendreport/inspection_required.t @@ -5,9 +5,6 @@ use FixMyStreet::Script::Reports; ok( my $mech = FixMyStreet::TestMech->new, 'Created mech object' ); -use_ok 'FixMyStreet::Cobrand'; -FixMyStreet::DB->schema->cobrand(FixMyStreet::Cobrand::FixMyStreet->new()); - my $user = $mech->create_user_ok( 'user@example.com' ); my $body = $mech->create_body_ok( 2237, 'Oxfordshire County Council'); |