aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/admin.t4
1 files changed, 1 insertions, 3 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t
index e2dd5df19..96565e82b 100644
--- a/t/app/controller/admin.t
+++ b/t/app/controller/admin.t
@@ -1240,9 +1240,7 @@ subtest "Check admin_base_url" => sub {
my $rs = FixMyStreet::App->model('DB::Problem');
my $cobrand = FixMyStreet::Cobrand->get_class_for_moniker($report->cobrand)->new();
- is (FixMyStreet::App->model('DB::Problem')->get_admin_url(
- $cobrand,
- $report),
+ is ($report->admin_url($cobrand),
(sprintf 'https://secure.mysociety.org/admin/bci/report_edit/%d', $report_id),
'get_admin_url OK');
};