aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/my_planned.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-06-13 18:39:05 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-06-20 15:02:11 +0100
commite57cbf483790bedfef6496be3c7ffa42882c3ffc (patch)
treed01788502457f801a846cdac78213df5ecdf1ea5 /t/app/controller/my_planned.t
parenta5f311e5147621f285cf31647ce675c502095882 (diff)
[UK] Remove requirement for fixed body IDs.
Historically in UK cobrands, bodies have had IDs the same as the MapIt area ID they cover. This can be confusing (if you are setting up a dev environment, say) and should not be necessary. This commit removes the requirement entirely, by switching any ID checks to either the name of the body, or the actual area it covers. One note: the body name in the test has to match so that we do not get two bodies both covering 2237 created. This will not be necessary when the tests are compartmentalized in the next commit.
Diffstat (limited to 't/app/controller/my_planned.t')
-rw-r--r--t/app/controller/my_planned.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/controller/my_planned.t b/t/app/controller/my_planned.t
index 79d9e9e72..9e9ac06a2 100644
--- a/t/app/controller/my_planned.t
+++ b/t/app/controller/my_planned.t
@@ -4,7 +4,7 @@ my $mech = FixMyStreet::TestMech->new;
$mech->get_ok('/my/planned');
is $mech->uri->path, '/auth', "got sent to the sign in page";
-my $body = $mech->create_body_ok(2237, 'Oxfordshire');
+my $body = $mech->create_body_ok(2237, 'Oxfordshire County Council');
my ($problem) = $mech->create_problems_for_body(1, $body->id, 'Test Title');
$mech->get_ok($problem->url);