Bug 12134: (follow-up) fix one of the IsDebarred() tests
- pass valid ISO date to the debar-date-in-future test - correctly verify that patron is restricted Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
parent
c2d0a49def
commit
2f5e9df121
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ is( IsDebarred( $borrowernumber ), undef, 'A patron with a debarred date in the
|
|||
$dbh->do(q|UPDATE borrowers SET debarred = NULL|);
|
||||
is( IsDebarred( $borrowernumber ), undef, 'A patron without a debarred date is not debarred' );
|
||||
|
||||
$dbh->do(q|UPDATE borrowers SET debarred = '9999-31-12'|); # Note: Change this test before the first of January 10000!
|
||||
is( IsDebarred( $borrowernumber ), undef, 'A patron with a debarred date in the future is debarred' );
|
||||
$dbh->do(q|UPDATE borrowers SET debarred = '9999-12-31'|); # Note: Change this test before the first of January 10000!
|
||||
is( IsDebarred( $borrowernumber ), '9999-12-31', 'A patron with a debarred date in the future is debarred' );
|
||||
|
||||
$dbh->rollback;
|
||||
|
|
Loading…
Reference in a new issue