diff options
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/bucks.t | 2 | ||||
-rw-r--r-- | t/open311/getservicerequestupdates.t | 14 | ||||
-rw-r--r-- | t/script/inactive.t | 3 |
3 files changed, 16 insertions, 3 deletions
diff --git a/t/cobrand/bucks.t b/t/cobrand/bucks.t index 1dee8b47e..882de8179 100644 --- a/t/cobrand/bucks.t +++ b/t/cobrand/bucks.t @@ -32,7 +32,7 @@ $mech->create_problems_for_body(1, $body->id, 'On Road', { subtest 'flytipping on road sent to extra email' => sub { FixMyStreet::Script::Reports::send(); my $email = $mech->get_email; - my $tfb = join('', 'internaltfb', '@', 'buckscc.gov.uk'); + my $tfb = join('', 'crmbusinesssupport', '@', 'buckscc.gov.uk'); is $email->header('To'), '"Buckinghamshire" <flytipping@example.org>, "TfB" <' . $tfb . '>'; }; diff --git a/t/open311/getservicerequestupdates.t b/t/open311/getservicerequestupdates.t index 3c279d776..27064574b 100644 --- a/t/open311/getservicerequestupdates.t +++ b/t/open311/getservicerequestupdates.t @@ -258,6 +258,18 @@ for my $test ( end_state => 'fixed - council', }, { + desc => 'status of CLOSED marks report as closed when using extended statuses', + description => 'This is a note', + external_id => 638344, + start_state => 'confirmed', + comment_status => 'CLOSED', + mark_fixed=> 0, + mark_open => 0, + problem_state => 'closed', + end_state => 'closed', + extended_statuses => 1, + }, + { desc => 'status of OPEN re-opens fixed report', description => 'This is a note', external_id => 638344, @@ -384,7 +396,7 @@ for my $test ( ) { subtest $test->{desc} => sub { my $local_requests_xml = setup_xml($problem->external_id, $problem->id, $test->{comment_status}, $test->{xml_description}); - my $o = Open311->new( jurisdiction => 'mysociety', endpoint => 'http://example.com', test_mode => 1, test_get_returns => { 'servicerequestupdates.xml' => $local_requests_xml } ); + my $o = Open311->new( jurisdiction => 'mysociety', endpoint => 'http://example.com', extended_statuses => $test->{extended_statuses}, test_mode => 1, test_get_returns => { 'servicerequestupdates.xml' => $local_requests_xml } ); $problem->lastupdate( DateTime->now()->subtract( days => 1 ) ); $problem->state( $test->{start_state} ); diff --git a/t/script/inactive.t b/t/script/inactive.t index 4d78b385f..4667c989b 100644 --- a/t/script/inactive.t +++ b/t/script/inactive.t @@ -55,7 +55,8 @@ subtest 'Closing updates on inactive fixed/closed reports' => sub { $in->reports; $problems[2]->discard_changes; is $problems[2]->get_extra_metadata('closed_updates'), 1, 'Closed to updates'; - # TODO Visit page, check closed for updates + $mech->get_ok("/report/" . $problems[2]->id); + $mech->content_contains('now closed to updates'); }; subtest 'Anonymization of inactive users' => sub { |