Lines 40-46
subtest 'success tests' => sub {
Link Here
|
40 |
|
40 |
|
41 |
my $patron = $builder->build_object( |
41 |
my $patron = $builder->build_object( |
42 |
{ class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 2**4 } } ); |
42 |
{ class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 2**4 } } ); |
43 |
$patron->set_password($password); |
43 |
$patron->set_password({ password => $password }); |
44 |
my $userid = $patron->userid; |
44 |
my $userid = $patron->userid; |
45 |
|
45 |
|
46 |
$t->get_ok("//$userid:$password@/api/v1/patrons") |
46 |
$t->get_ok("//$userid:$password@/api/v1/patrons") |
Lines 71-77
subtest 'failure tests' => sub {
Link Here
|
71 |
|
71 |
|
72 |
my $patron = $builder->build_object( |
72 |
my $patron = $builder->build_object( |
73 |
{ class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 2**4 } } ); |
73 |
{ class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 2**4 } } ); |
74 |
$patron->set_password($password); |
74 |
$patron->set_password({ password => $password }); |
75 |
my $userid = $patron->userid; |
75 |
my $userid = $patron->userid; |
76 |
|
76 |
|
77 |
$t->get_ok("//@/api/v1/patrons") |
77 |
$t->get_ok("//@/api/v1/patrons") |
78 |
- |
|
|