aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-18 09:43:14 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-22 11:47:33 +0000
commit7f41c1b26110e18c0068bcd9e209daebe26b6779 (patch)
tree0e6dd0b31fe073c1f30fb588e90237eae08da1e1 /t/cobrand
parentaee1158c6207a52fb459ad4b7dee745d15dcf08e (diff)
Refactor admin body/user functions to own files.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/bathnes.t2
-rw-r--r--t/cobrand/bromley.t2
-rw-r--r--t/cobrand/zurich.t2
3 files changed, 3 insertions, 3 deletions
diff --git a/t/cobrand/bathnes.t b/t/cobrand/bathnes.t
index 59e0d5246..4db2f058c 100644
--- a/t/cobrand/bathnes.t
+++ b/t/cobrand/bathnes.t
@@ -105,7 +105,7 @@ subtest "Custom CSV fields permission can be granted" => sub {
is $counciluser->user_body_permissions->count, 0, 'counciluser has no permissions';
- $mech->get_ok("/admin/user_edit/" . $counciluser->id);
+ $mech->get_ok("/admin/users/" . $counciluser->id);
$mech->content_contains('Extra columns in CSV export');
$mech->submit_form_ok( { with_fields => {
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index 05581bdfe..129531fcb 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -220,7 +220,7 @@ subtest 'check special subcategories in admin' => sub {
ALLOWED_COBRANDS => 'bromley',
MAPIT_URL => 'http://mapit.uk/',
}, sub {
- $mech->get_ok('/admin/user_edit/' . $user->id);
+ $mech->get_ok('/admin/users/' . $user->id);
$mech->submit_form_ok({ with_fields => { 'contacts['.$contact->id.']' => 1, 'contacts[BLUE]' => 1 } });
};
$user->discard_changes;
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 1faa0adf2..ee2724a07 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -1092,7 +1092,7 @@ FixMyStreet::override_config {
}, sub {
subtest 'users at the top level can be edited' => sub {
$mech->log_in_ok( $superuser->email );
- $mech->get_ok('/admin/user_edit/' . $superuser->id );
+ $mech->get_ok('/admin/users/' . $superuser->id );
};
};