Lines 29-35
use Koha::Patrons;
Link Here
|
29 |
use Koha::ItemTypes; |
29 |
use Koha::ItemTypes; |
30 |
use Koha::Items; |
30 |
use Koha::Items; |
31 |
use Koha::Libraries; |
31 |
use Koha::Libraries; |
32 |
use Koha::MessageAttributes; |
32 |
use Koha::Patron::MessagePreference::Attributes; |
33 |
use Koha::Notice::Templates; |
33 |
use Koha::Notice::Templates; |
34 |
use Koha::AuthorisedValueCategories; |
34 |
use Koha::AuthorisedValueCategories; |
35 |
use Koha::AuthorisedValues; |
35 |
use Koha::AuthorisedValues; |
Lines 1014-1020
subtest 'Helpers' => sub {
Link Here
|
1014 |
is($illrq_obj->requires_moderation, 'CANCREQ', "requires_moderation: Yes."); |
1014 |
is($illrq_obj->requires_moderation, 'CANCREQ', "requires_moderation: Yes."); |
1015 |
|
1015 |
|
1016 |
#send_patron_notice |
1016 |
#send_patron_notice |
1017 |
my $attr = Koha::MessageAttributes->find({ message_name => 'Ill_ready' }); |
1017 |
my $attr = Koha::Patron::MessagePreference::Attributes->find({ message_name => 'Ill_ready' }); |
1018 |
C4::Members::Messaging::SetMessagingPreference({ |
1018 |
C4::Members::Messaging::SetMessagingPreference({ |
1019 |
borrowernumber => $patron->{borrowernumber}, |
1019 |
borrowernumber => $patron->{borrowernumber}, |
1020 |
message_attribute_id => $attr->message_attribute_id, |
1020 |
message_attribute_id => $attr->message_attribute_id, |
Lines 1034-1040
subtest 'Helpers' => sub {
Link Here
|
1034 |
is($notice, 'ILL_PICKUP_READY' ,"Notice is correctly created"); |
1034 |
is($notice, 'ILL_PICKUP_READY' ,"Notice is correctly created"); |
1035 |
|
1035 |
|
1036 |
# ill update notice, passes additional text parameter |
1036 |
# ill update notice, passes additional text parameter |
1037 |
my $attr_update = Koha::MessageAttributes->find({ message_name => 'Ill_update' }); |
1037 |
my $attr_update = Koha::Patron::MessagePreference::Attributes->find({ message_name => 'Ill_update' }); |
1038 |
C4::Members::Messaging::SetMessagingPreference({ |
1038 |
C4::Members::Messaging::SetMessagingPreference({ |
1039 |
borrowernumber => $patron->{borrowernumber}, |
1039 |
borrowernumber => $patron->{borrowernumber}, |
1040 |
message_attribute_id => $attr_update->message_attribute_id, |
1040 |
message_attribute_id => $attr_update->message_attribute_id, |
1041 |
- |
|
|