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:
Tomas Cohen Arazi 2019-01-30 15:46:04 -03:00 committed by Martin Renvoize
parent a9b3b01dd9
commit 3c8f67afe8
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 2 additions and 2 deletions

View File

@ -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")