Lines 170-177
is(
Link Here
|
170 |
is( $messages->[0]->{failure_code}, '', 'Failure code for successful message correctly empty' ); |
170 |
is( $messages->[0]->{failure_code}, '', 'Failure code for successful message correctly empty' ); |
171 |
|
171 |
|
172 |
# Setting time_queued to something else than now |
172 |
# Setting time_queued to something else than now |
173 |
my $yesterday = dt_from_string->subtract( days => 1 ); |
173 |
my $yesterday = dt_from_string->subtract( days => 1 ); |
174 |
Koha::Notice::Messages->find( $messages->[0]->{message_id} )->time_queued($yesterday)->store; |
174 |
my $message_obj = Koha::Notice::Messages->find( $messages->[0]->{message_id} )->time_queued($yesterday)->store; |
|
|
175 |
my $patron_obj = Koha::Patrons->find($borrowernumber); |
176 |
is_deeply( $message_obj->patron, $patron_obj, "Koha::Notice::Message->patron sub correctly returns patron object" ); |
175 |
|
177 |
|
176 |
# EnqueueLetter - Test characters limitation for SMS |
178 |
# EnqueueLetter - Test characters limitation for SMS |
177 |
$my_message->{letter}->{content} = "a" x 2000; |
179 |
$my_message->{letter}->{content} = "a" x 2000; |
178 |
- |
|
|