diff options
author | Struan Donald <struan@exo.org.uk> | 2012-02-27 11:52:54 +0000 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2012-02-27 11:52:54 +0000 |
commit | 212ea3e9f788c2a83369b02b53c175c1afd8fe0e (patch) | |
tree | 059194a051426ea4680fa477fb6eab48e0823c1f /t/app/model | |
parent | 73b9d630c713ca37f86cdff6fa95b64c36f29a31 (diff) |
rough first draft of send-report refactor not. Work in progress at the moment
Diffstat (limited to 't/app/model')
-rw-r--r-- | t/app/model/problem.t | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/t/app/model/problem.t b/t/app/model/problem.t index 58c66ac74..1b80f00ea 100644 --- a/t/app/model/problem.t +++ b/t/app/model/problem.t @@ -348,6 +348,19 @@ for my $test ( my $mech = FixMyStreet::TestMech->new(); +FixMyStreet::App->model('DB::Contact')->find_or_create( + { + area_id => 2663, + category => 'potholes', + email => 'test@example.org', + confirmed => 1, + deleted => 0, + editor => 'test', + whenedited => \'ms_current_timestamp()', + note => '', + } +); + foreach my $test ( { } ) { @@ -362,10 +375,11 @@ foreach my $test ( { $problem->discard_changes; $problem->update( { - council => 2651, + council => 2663, state => 'confirmed', confirmed => \'ms_current_timestamp()', whensent => undef, + category => 'potholes', } ); FixMyStreet::App->model('DB::Problem')->send_reports(); |