Lines 1066-1072
subtest 'Backend core methods' => sub {
Link Here
|
1066 |
|
1066 |
|
1067 |
subtest 'Helpers' => sub { |
1067 |
subtest 'Helpers' => sub { |
1068 |
|
1068 |
|
1069 |
plan tests => 26; |
1069 |
plan tests => 27; |
1070 |
|
1070 |
|
1071 |
$schema->storage->txn_begin; |
1071 |
$schema->storage->txn_begin; |
1072 |
|
1072 |
|
Lines 1365-1370
Attribute: Pages=[% illrequestattributes.pages %]
Link Here
|
1365 |
'Koha::ILL::Request->get_notice lang correctly defaults to "default" for a request without a patron' |
1365 |
'Koha::ILL::Request->get_notice lang correctly defaults to "default" for a request without a patron' |
1366 |
); |
1366 |
); |
1367 |
|
1367 |
|
|
|
1368 |
Koha::Patron::MessagePreference::Attributes->delete(); |
1369 |
my $no_message_preferences_return = $illrq_obj->send_patron_notice('ILL_PICKUP_READY'); |
1370 |
is_deeply( |
1371 |
$no_message_preferences_return, |
1372 |
{ result => { fail => [ 'email', 'sms' ], success => [] } }, |
1373 |
"Correct error when patron has no message preferences" |
1374 |
); |
1375 |
|
1368 |
$schema->storage->txn_rollback; |
1376 |
$schema->storage->txn_rollback; |
1369 |
}; |
1377 |
}; |
1370 |
|
1378 |
|
1371 |
- |
|
|