diff options
author | Marius Halden <marius.h@lden.org> | 2015-08-26 13:43:10 +0200 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-08-26 13:43:10 +0200 |
commit | cc0acdd34052e79f3df368ac1f524de31df19a1b (patch) | |
tree | 505f561b5f16c5b78f07514e8c2b2bdc18fef51d /t/app/controller/report_import.t | |
parent | 1c5c685d0b0904e7ddc6e764e58e8fae08632d1d (diff) | |
parent | 6b84622fb7d58531baa7943abdcc7620999c34ee (diff) |
Merge tag 'v1.6.1' into fiksgatami-dev
Diffstat (limited to 't/app/controller/report_import.t')
-rw-r--r-- | t/app/controller/report_import.t | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index e5e9e2899..ff6508149 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -17,7 +17,17 @@ ok -e $sample_file, "sample file $sample_file exists"; FixMyStreet::App->log->disable('info'); END { FixMyStreet::App->log->enable('info'); } -$mech->create_body_ok(2504, 'Westminster City Council'); +my $body = $mech->create_body_ok(2504, 'Westminster City Council'); +$mech->create_contact_ok( + body_id => $body->id, + category => 'Street lighting', + email => 'streetlighting@example.com', +); +$mech->create_contact_ok( + body_id => $body->id, + category => 'Potholes', + email => 'highways@example.com', +); # submit an empty report to import - check we get all errors subtest "Test creating bad partial entries" => sub { @@ -372,3 +382,7 @@ subtest "Submit a correct entry (with location) to cobrand" => sub { }; done_testing(); + +END { + $mech->delete_body($body); +} |