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