aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth_profile.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-09-19 10:07:12 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-10-03 15:53:29 +0100
commit1ada9ee8ca6ba10bd6b3c7fb02f7b5599972db5c (patch)
tree894ef51a1eca70bb9a93a25dd0b4d38a0904463b /t/app/controller/auth_profile.t
parentc73fc63cb5cb516377ed2638bbd607dbd4357bd5 (diff)
Per-test file email addresses.
Diffstat (limited to 't/app/controller/auth_profile.t')
-rw-r--r--t/app/controller/auth_profile.t3
1 files changed, 1 insertions, 2 deletions
diff --git a/t/app/controller/auth_profile.t b/t/app/controller/auth_profile.t
index 4be1be12c..815098caa 100644
--- a/t/app/controller/auth_profile.t
+++ b/t/app/controller/auth_profile.t
@@ -428,10 +428,9 @@ subtest "Test generate token page" => sub {
};
subtest "Test two-factor authentication admin" => sub {
- my $user = FixMyStreet::App->model('DB::User')->find( { email => $test_email } );
+ my $user = $mech->log_in_ok($test_email);
ok $user->update({ is_superuser => 1 }), 'user set to superuser';
- $mech->log_in_ok($test_email);
$mech->get_ok('/auth/generate_token');
ok !$user->get_extra_metadata('2fa_secret');