Bug 22132: (QA follow-up) set_password now expects a hashref
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 63f40e519c)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
a9b3b01dd9
commit
3c8f67afe8
|
|
@ -40,7 +40,7 @@ subtest 'success tests' => sub {
|
|||
|
||||
my $patron = $builder->build_object(
|
||||
{ class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 2**4 } } );
|
||||
$patron->set_password($password);
|
||||
$patron->set_password({ password => $password });
|
||||
my $userid = $patron->userid;
|
||||
|
||||
$t->get_ok("//$userid:$password@/api/v1/patrons")
|
||||
|
|
@ -71,7 +71,7 @@ subtest 'failure tests' => sub {
|
|||
|
||||
my $patron = $builder->build_object(
|
||||
{ class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 2**4 } } );
|
||||
$patron->set_password($password);
|
||||
$patron->set_password({ password => $password });
|
||||
my $userid = $patron->userid;
|
||||
|
||||
$t->get_ok("//@/api/v1/patrons")
|
||||
|
|
|
|||
Loading…
Reference in New Issue