diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-13 10:58:07 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-07-21 17:37:47 +0100 |
commit | ef9850616c71d82980bdf77e001267a89337e1a8 (patch) | |
tree | 22ea4291b7f374589ba75a173027704f5bc0b599 /t/map | |
parent | 17ebb70ee0e1d0452b824d3d8daee7405f5edf5c (diff) |
Refactor map pin/feature functions.
Diffstat (limited to 't/map')
-rw-r--r-- | t/map/tilma/original.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/t/map/tilma/original.t b/t/map/tilma/original.t index a1c6d83f4..f16f5b244 100644 --- a/t/map/tilma/original.t +++ b/t/map/tilma/original.t @@ -99,18 +99,18 @@ for my $test ( $report->state($test->{state}); $report->update; - my ( $pins, $around_map_list, $nearby, $dist ) = - FixMyStreet::Map::map_pins( $c, 0, 0, 0, 0 ); + my ( $on_map_all, $on_map_list, $nearby, $dist ) = + FixMyStreet::Map::map_features($c, bbox => "0,0,0,0"); - ok $pins; - ok $around_map_list; + ok $on_map_list; ok $nearby; ok $dist; my $id = $report->id; my $colour = $test->{colour}; - is $pins->[0][2], $colour, 'pin colour'; + my $pin_colour = $c->cobrand->pin_colour($on_map_all->[0], 'around'); + is $pin_colour, $colour, 'pin colour'; }; } |