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>
(cherry picked from commit 2f5e9df121)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
1d4d2d0db7
commit
72e087186d
|
|
@ -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 New Issue