forked from lix-project/hydra
hydra-create-user: use test_context over test_init
This commit is contained in:
parent
bb9864bad7
commit
12d0d0c176
|
@ -1,17 +1,10 @@
|
||||||
use feature 'unicode_strings';
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Setup;
|
use Setup;
|
||||||
|
|
||||||
my %ctx = test_init();
|
|
||||||
|
|
||||||
require Hydra::Schema;
|
|
||||||
require Hydra::Model::DB;
|
|
||||||
|
|
||||||
use Test2::V0;
|
use Test2::V0;
|
||||||
|
|
||||||
my $db = Hydra::Model::DB->new;
|
my $ctx = test_context();
|
||||||
hydra_setup($db);
|
my $db = $ctx->db();
|
||||||
|
|
||||||
subtest "Handling password and password hash creation" => sub {
|
subtest "Handling password and password hash creation" => sub {
|
||||||
subtest "Creating a user with a plain text password (insecure) stores the password securely" => sub {
|
subtest "Creating a user with a plain text password (insecure) stores the password securely" => sub {
|
||||||
|
|
Loading…
Reference in a new issue