|
Lines 1065-1071
subtest 'Backend core methods' => sub {
Link Here
|
| 1065 |
|
1065 |
|
| 1066 |
subtest 'Helpers' => sub { |
1066 |
subtest 'Helpers' => sub { |
| 1067 |
|
1067 |
|
| 1068 |
plan tests => 25; |
1068 |
plan tests => 26; |
| 1069 |
|
1069 |
|
| 1070 |
$schema->storage->txn_begin; |
1070 |
$schema->storage->txn_begin; |
| 1071 |
|
1071 |
|
|
Lines 1341-1346
Attribute: Pages=[% illrequestattributes.pages %]
Link Here
|
| 1341 |
'appending to a note works' |
1341 |
'appending to a note works' |
| 1342 |
); |
1342 |
); |
| 1343 |
|
1343 |
|
|
|
1344 |
my $illrq_without_patron = $builder->build( |
| 1345 |
{ |
| 1346 |
source => 'Illrequest', |
| 1347 |
value => { branchcode => "HDE", borrowernumber => undef } |
| 1348 |
} |
| 1349 |
); |
| 1350 |
my $illrq_obj_without_patron = Koha::ILL::Requests->find( $illrq_without_patron->{illrequest_id} ); |
| 1351 |
$illrq_obj_without_patron->_config($config); |
| 1352 |
$illrq_obj_without_patron->_backend($backend); |
| 1353 |
|
| 1354 |
my $get_notice_without_patron = $illrq_obj_without_patron->get_notice( |
| 1355 |
{ |
| 1356 |
notice_code => 'ILL_REQUEST_CANCEL', |
| 1357 |
transport => 'email' |
| 1358 |
} |
| 1359 |
); |
| 1360 |
|
| 1361 |
is( |
| 1362 |
$get_notice_without_patron->{lang}, |
| 1363 |
"default", |
| 1364 |
'Koha::ILL::Request->get_notice lang correctly defaults to "default" for a request without a patron' |
| 1365 |
); |
| 1366 |
|
| 1344 |
$schema->storage->txn_rollback; |
1367 |
$schema->storage->txn_rollback; |
| 1345 |
}; |
1368 |
}; |
| 1346 |
|
1369 |
|
| 1347 |
- |
|
|