Browse Source

Bug 22059: regression tests

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Tomás Cohen Arazi 6 years ago
committed by Nick Clemens
parent
commit
3ef3ecfe99
  1. 6
      t/db_dependent/Koha/Patrons.t

6
t/db_dependent/Koha/Patrons.t

@ -1518,7 +1518,7 @@ subtest '->store' => sub {
subtest '->set_password' => sub {
plan tests => 12;
plan tests => 13;
$schema->storage->txn_begin;
@ -1532,6 +1532,10 @@ subtest '->set_password' => sub {
throws_ok { $patron->set_password('ab'); }
'Koha::Exceptions::Password::TooShort',
'minPasswordLength is undef, fall back to 3, fail test';
is( "$@",
'Password length (2) is shorter than required (3)',
'Exception parameters passed correctly'
);
t::lib::Mocks::mock_preference( 'minPasswordLength', 2 );
throws_ok { $patron->set_password('ab'); }

Loading…
Cancel
Save