Bug 22206: (QA follow-up) Fix tests for hold suspension api
authorJosef Moravec <josef.moravec@gmail.com>
Thu, 21 Feb 2019 00:59:22 +0000 (00:59 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 19:35:30 +0000 (19:35 +0000)
Test plan:

prove t/db_dependent/api/v1/holds.t

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/api/v1/holds.t

index 700af99..31a1430 100644 (file)
@@ -338,7 +338,7 @@ subtest 'suspend and resume tests' => sub {
 
     my $patron = $builder->build_object(
         { class => 'Koha::Patrons', value => { userid => 'tomasito', flags => 1 } } );
-    $patron->set_password($password);
+    $patron->set_password({ password => $password, skip_validation => 1 });
     my $userid = $patron->userid;
 
     # Disable logging