aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/token.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/token.t')
-rw-r--r--t/app/controller/token.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/app/controller/token.t b/t/app/controller/token.t
index 9ca8b905d..ac88f4f7a 100644
--- a/t/app/controller/token.t
+++ b/t/app/controller/token.t
@@ -6,10 +6,8 @@ use utf8;
use FixMyStreet::TestMech;
use FixMyStreet::App;
-my $user = FixMyStreet::App->model('DB::User')->find_or_create({
- name => 'Bob', email => 'bob@example.com',
- });
my $mech = FixMyStreet::TestMech->new;
+my $user = $mech->create_user_ok('bob@example.com', name => 'Bob');
subtest 'Zurich special case for C::Tokens->problem_confirm' => sub {
FixMyStreet::override_config {