From e2adcb88e58ba2a506f53e8c3457636b5ce0cf4c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 10 Aug 2022 08:12:53 +0100 Subject: [PATCH] Bug 27342: (QA follow-up) Remove dbh from new tests --- t/db_dependent/Auth.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t index 8d68168f8f..ad7f9ddc03 100755 --- a/t/db_dependent/Auth.t +++ b/t/db_dependent/Auth.t @@ -524,11 +524,11 @@ subtest 'Check value of login_attempts in checkpw' => sub { my $patron = $builder->build_object({ class => 'Koha::Patrons' }); $patron->set_password({ password => '123', skip_validation => 1 }); - my @test = checkpw( $dbh, $patron->userid, '123', undef, 'opac', 1 ); + my @test = checkpw( $patron->userid, '123', undef, 'opac', 1 ); is( $test[0], 1, 'Patron authenticated correctly' ); $patron->password_expiration_date('2020-01-01')->store; - @test = checkpw( $dbh, $patron->userid, '123', undef, 'opac', 1 ); + @test = checkpw( $patron->userid, '123', undef, 'opac', 1 ); is( $test[0], -2, 'Patron returned as expired correctly' ); }; -- 2.20.1