Bug 27342: (QA follow-up) Remove dbh from new tests

This commit is contained in:
Martin Renvoize 2022-08-10 08:12:53 +01:00 committed by Wainui Witika-Park
parent 25cd8e9239
commit f11737f987
1 changed files with 2 additions and 2 deletions

View File

@ -678,11 +678,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' );
};