|
Lines 1201-1207
subtest 'test update_dateexpiry when no dateexpiry in file' => sub {
Link Here
|
| 1201 |
|
1201 |
|
| 1202 |
is( |
1202 |
is( |
| 1203 |
$patron->dateexpiry, dt_from_string->add( months => 18, end_of_month => 'limit' )->ymd, |
1203 |
$patron->dateexpiry, dt_from_string->add( months => 18, end_of_month => 'limit' )->ymd, |
| 1204 |
"Expiration date is correct with update_dateexpiry = true no dateexpiry in file and update_datexpiryfromtoday false (i.e. use passed dateenrolled) " |
1204 |
"Expiration date is correct with update_dateexpiry = true no dateexpiry in file and update_dateexpiryfromtoday false (i.e. use passed dateenrolled) " |
| 1205 |
); |
1205 |
); |
| 1206 |
|
1206 |
|
| 1207 |
$filename_1 = make_csv( $temp_dir, $csv_headers, $csv_values ); |
1207 |
$filename_1 = make_csv( $temp_dir, $csv_headers, $csv_values ); |
|
Lines 1214-1220
subtest 'test update_dateexpiry when no dateexpiry in file' => sub {
Link Here
|
| 1214 |
$patron->discard_changes(); |
1214 |
$patron->discard_changes(); |
| 1215 |
is( |
1215 |
is( |
| 1216 |
$patron->dateexpiry, dt_from_string->add( months => 42, end_of_month => 'limit' )->ymd, |
1216 |
$patron->dateexpiry, dt_from_string->add( months => 42, end_of_month => 'limit' )->ymd, |
| 1217 |
"Expiration date is correct with update_dateexpiry = true no dateexpiry in file and update_datexpiryfromtoday true " |
1217 |
"Expiration date is correct with update_dateexpiry = true no dateexpiry in file and update_dateexpiryfromtoday true " |
| 1218 |
); |
1218 |
); |
| 1219 |
|
1219 |
|
| 1220 |
$csv_headers = 'cardnumber,surname,branchcode,categorycode'; |
1220 |
$csv_headers = 'cardnumber,surname,branchcode,categorycode'; |
|
Lines 1228-1234
subtest 'test update_dateexpiry when no dateexpiry in file' => sub {
Link Here
|
| 1228 |
$patron->discard_changes(); |
1228 |
$patron->discard_changes(); |
| 1229 |
is( |
1229 |
is( |
| 1230 |
$patron->dateexpiry, dt_from_string->add( months => 42, end_of_month => 'limit' )->ymd, |
1230 |
$patron->dateexpiry, dt_from_string->add( months => 42, end_of_month => 'limit' )->ymd, |
| 1231 |
"Expiration date is correct with update_dateexpiry = true no dateexpiry in file and update_datexpiryfromtoday false but no dateenrolled in file (today is used) " |
1231 |
"Expiration date is correct with update_dateexpiry = true no dateexpiry in file and update_dateexpiryfromtoday false but no dateenrolled in file (today is used) " |
| 1232 |
); |
1232 |
); |
| 1233 |
|
1233 |
|
| 1234 |
}; |
1234 |
}; |
| 1235 |
- |
|
|