aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth_phone.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-11-22 13:04:34 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-11-22 13:11:51 +0000
commit9f855f70a644c79182128b7c5384a460e5c2450d (patch)
treea672d8ddd856a1a73f577389a835647146a3f2e7 /t/app/controller/auth_phone.t
parent399a38c4636fac6ce4a2eb21053604ba74309a36 (diff)
Replace use of FixMyStreet::App with DB in tests.
Diffstat (limited to 't/app/controller/auth_phone.t')
-rw-r--r--t/app/controller/auth_phone.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/auth_phone.t b/t/app/controller/auth_phone.t
index dea1c3493..e5f49ed19 100644
--- a/t/app/controller/auth_phone.t
+++ b/t/app/controller/auth_phone.t
@@ -60,7 +60,7 @@ FixMyStreet::override_config {
with_fields => { code => $code }
}, 'submit correct code');
- my $user = FixMyStreet::App->model('DB::User')->find( { phone => '+18165550100' } );
+ my $user = FixMyStreet::DB->resultset('User')->find( { phone => '+18165550100' } );
ok $user, "user created";
is $mech->uri->path, '/my', "redirected to the 'my' section of site";
$mech->logged_in_ok;