diff options
Diffstat (limited to 't/app/sendreport')
-rw-r--r-- | t/app/sendreport/email.t | 2 | ||||
-rw-r--r-- | t/app/sendreport/open311.t | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/t/app/sendreport/email.t b/t/app/sendreport/email.t index 0cdf49378..718b0a495 100644 --- a/t/app/sendreport/email.t +++ b/t/app/sendreport/email.t @@ -56,7 +56,7 @@ foreach my $test ( { ) { subtest $test->{desc} => sub { my $e = FixMyStreet::SendReport::Email->new; - $contact->update( { confirmed => 0 } ) if $test->{unconfirmed}; + $contact->update( { state => 'unconfirmed' } ) if $test->{unconfirmed}; $contact->update( { note => $test->{note} } ) if $test->{note}; $e->add_body( $body ) if $test->{add_council}; is $e->build_recipient_list( $row, {} ), $test->{count}, 'correct recipient list count'; diff --git a/t/app/sendreport/open311.t b/t/app/sendreport/open311.t index b60b199b0..8f933065c 100644 --- a/t/app/sendreport/open311.t +++ b/t/app/sendreport/open311.t @@ -167,10 +167,9 @@ sub test_overrides { $body->update({ can_be_devolved => 1 }); my $contact = $body->contacts->find_or_create( - confirmed => 1, + state => 'confirmed', email => 'ZZ', category => 'ZZ', - deleted => 0, editor => 'test suite', note => '', whenedited => DateTime->now, |