Bug 22132: (QA follow-up) set_password now expects a hashref
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 30 Jan 2019 18:46:04 +0000 (15:46 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 30 Jan 2019 18:57:18 +0000 (18:57 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/api/v1/auth_basic.t

index eba153a..4fb48f0 100644 (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")