aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/cobrand/restriction.t2
-rw-r--r--t/map/tilma/original.t4
2 files changed, 2 insertions, 4 deletions
diff --git a/t/cobrand/restriction.t b/t/cobrand/restriction.t
index 9e3018625..63fe326b1 100644
--- a/t/cobrand/restriction.t
+++ b/t/cobrand/restriction.t
@@ -47,7 +47,7 @@ is($c->model('DB::Problem')->count, 4, 'Four reports in database');
is($cobrand->problems->count, 2, 'Two reports in the right cobrand');
is($cobrand->updates->count, 1, 'One update in the right cobrand');
-my $nearby = $c->model('DB::Nearby')->nearby($c, 5, [], 10, 0.003, 0.004);
+my $nearby = $c->model('DB::Nearby')->nearby($c, distance => 5, ids => [], limit => 10, latitude => 0.003, longitude => 0.004);
is(@$nearby, 1, 'One report close to the origin point');
done_testing();
diff --git a/t/map/tilma/original.t b/t/map/tilma/original.t
index 42cbbd9f2..9a404a2c9 100644
--- a/t/map/tilma/original.t
+++ b/t/map/tilma/original.t
@@ -93,12 +93,10 @@ for my $test (
$report->update;
$c->stash->{report_age_field} = 'lastupdate';
- my ( $on_map, $nearby, $dist ) =
- FixMyStreet::Map::map_features($c, bbox => "0,0,0,0");
+ my ($on_map, $nearby) = FixMyStreet::Map::map_features($c, bbox => "0,0,0,0");
ok $on_map;
ok $nearby;
- ok $dist;
my $id = $report->id;
my $colour = $test->{colour};