aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model/user.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/model/user.t
parent399a38c4636fac6ce4a2eb21053604ba74309a36 (diff)
Replace use of FixMyStreet::App with DB in tests.
Diffstat (limited to 't/app/model/user.t')
-rw-r--r--t/app/model/user.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/model/user.t b/t/app/model/user.t
index c1981c858..929020d4b 100644
--- a/t/app/model/user.t
+++ b/t/app/model/user.t
@@ -105,7 +105,7 @@ done_testing();
sub create_update {
my ($problem, %params) = @_;
my $dt = DateTime->now()->add(days => 1);
- return FixMyStreet::App->model('DB::Comment')->find_or_create({
+ return FixMyStreet::DB->resultset('Comment')->find_or_create({
problem_id => $problem->id,
user_id => $problem->user_id,
name => 'Other User',