aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/my.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/my.t
parent399a38c4636fac6ce4a2eb21053604ba74309a36 (diff)
Replace use of FixMyStreet::App with DB in tests.
Diffstat (limited to 't/app/controller/my.t')
-rw-r--r--t/app/controller/my.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/my.t b/t/app/controller/my.t
index 8b4a25c26..673addf0c 100644
--- a/t/app/controller/my.t
+++ b/t/app/controller/my.t
@@ -23,7 +23,7 @@ $mech->content_lacks('Another Title');
my @update;
my $i = 0;
foreach ($user, $user, $other_user) {
- $update[$i] = FixMyStreet::App->model('DB::Comment')->create({
+ $update[$i] = FixMyStreet::DB->resultset('Comment')->create({
text => 'this is an update',
user => $_,
state => 'confirmed',