aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_interest_count.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/report_interest_count.t')
-rw-r--r--t/app/controller/report_interest_count.t5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/app/controller/report_interest_count.t b/t/app/controller/report_interest_count.t
index 4e86789ba..3cb80ea5f 100644
--- a/t/app/controller/report_interest_count.t
+++ b/t/app/controller/report_interest_count.t
@@ -22,10 +22,7 @@ my $mech = FixMyStreet::TestMech->new;
# create a test user and report
$mech->delete_user('test@example.com');
-my $user =
- FixMyStreet::App->model('DB::User')
- ->find_or_create( { email => 'test@example.com', name => 'Test User' } );
-ok $user, "created test user";
+my $user = $mech->create_user_ok('test@example.com', name => 'Test User');
my $dt = DateTime->new(
year => 2011,