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 1004-1010
subtest 'Helpers' => sub {
Link Here
|
1004 |
is($illrq_obj->requires_moderation, 'CANCREQ', "requires_moderation: Yes."); |
1004 |
is($illrq_obj->requires_moderation, 'CANCREQ', "requires_moderation: Yes."); |
1005 |
|
1005 |
|
1006 |
#send_patron_notice |
1006 |
#send_patron_notice |
1007 |
my $attr = Koha::MessageAttributes->find({ message_name => 'Ill_ready' }); |
1007 |
my $attr = Koha::Patron::MessagePreference::Attributes->find({ message_name => 'Ill_ready' }); |
1008 |
C4::Members::Messaging::SetMessagingPreference({ |
1008 |
C4::Members::Messaging::SetMessagingPreference({ |
1009 |
borrowernumber => $patron->{borrowernumber}, |
1009 |
borrowernumber => $patron->{borrowernumber}, |
1010 |
message_attribute_id => $attr->message_attribute_id, |
1010 |
message_attribute_id => $attr->message_attribute_id, |
Lines 1024-1030
subtest 'Helpers' => sub {
Link Here
|
1024 |
is($notice, 'ILL_PICKUP_READY' ,"Notice is correctly created"); |
1024 |
is($notice, 'ILL_PICKUP_READY' ,"Notice is correctly created"); |
1025 |
|
1025 |
|
1026 |
# ill update notice, passes additional text parameter |
1026 |
# ill update notice, passes additional text parameter |
1027 |
my $attr_update = Koha::MessageAttributes->find({ message_name => 'Ill_update' }); |
1027 |
my $attr_update = Koha::Patron::MessagePreference::Attributes->find({ message_name => 'Ill_update' }); |
1028 |
C4::Members::Messaging::SetMessagingPreference({ |
1028 |
C4::Members::Messaging::SetMessagingPreference({ |
1029 |
borrowernumber => $patron->{borrowernumber}, |
1029 |
borrowernumber => $patron->{borrowernumber}, |
1030 |
message_attribute_id => $attr_update->message_attribute_id, |
1030 |
message_attribute_id => $attr_update->message_attribute_id, |
1031 |
- |
|
|