Lines 19-25
Link Here
|
19 |
|
19 |
|
20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
21 |
use File::Basename qw(dirname); |
21 |
use File::Basename qw(dirname); |
22 |
use Test::More tests => 102; |
22 |
use Test::More tests => 103; |
23 |
use Test::MockModule; |
23 |
use Test::MockModule; |
24 |
use Test::Warn; |
24 |
use Test::Warn; |
25 |
use Test::Exception; |
25 |
use Test::Exception; |
Lines 155-162
is( $messages->[0]->{updated_on}, $messages->[0]->{time_queued}, 'Time status ch
Link Here
|
155 |
is( $messages->[0]->{failure_code}, '', 'Failure code for successful message correctly empty'); |
155 |
is( $messages->[0]->{failure_code}, '', 'Failure code for successful message correctly empty'); |
156 |
|
156 |
|
157 |
# Setting time_queued to something else than now |
157 |
# Setting time_queued to something else than now |
158 |
my $yesterday = dt_from_string->subtract( days => 1 ); |
158 |
my $yesterday = dt_from_string->subtract( days => 1 ); |
159 |
Koha::Notice::Messages->find($messages->[0]->{message_id})->time_queued($yesterday)->store; |
159 |
my $message_obj = Koha::Notice::Messages->find( $messages->[0]->{message_id} )->time_queued($yesterday)->store; |
|
|
160 |
my $patron_obj = Koha::Patrons->find($borrowernumber); |
161 |
is_deeply( $message_obj->patron, $patron_obj, "Koha::Notice::Message->patron sub correctly returns patron object" ); |
160 |
|
162 |
|
161 |
|
163 |
|
162 |
# EnqueueLetter - Test characters limitation for SMS |
164 |
# EnqueueLetter - Test characters limitation for SMS |
163 |
- |
|
|