Lines 18-24
Link Here
|
18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
18 |
# along with Koha; if not, see <http://www.gnu.org/licenses>. |
19 |
|
19 |
|
20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
21 |
use Test::More tests => 87; |
21 |
use Test::More tests => 88; |
22 |
use Test::MockModule; |
22 |
use Test::MockModule; |
23 |
use Test::Warn; |
23 |
use Test::Warn; |
24 |
use Test::Exception; |
24 |
use Test::Exception; |
Lines 150-156
is( $messages->[0]->{failure_code}, '', 'Failure code for successful message cor
Link Here
|
150 |
|
150 |
|
151 |
# Setting time_queued to something else than now |
151 |
# Setting time_queued to something else than now |
152 |
my $yesterday = dt_from_string->subtract( days => 1 ); |
152 |
my $yesterday = dt_from_string->subtract( days => 1 ); |
153 |
Koha::Notice::Messages->find($messages->[0]->{message_id})->time_queued($yesterday)->store; |
153 |
my $message_obj = Koha::Notice::Messages->find($messages->[0]->{message_id})->time_queued($yesterday)->store; |
|
|
154 |
my $patron_obj = Koha::Patrons->find( $borrowernumber ); |
155 |
is_deeply( $message_obj->patron, $patron_obj, "Koha::Notice::Message->patron sub correctly returns patron object"); |
154 |
|
156 |
|
155 |
# SendQueuedMessages |
157 |
# SendQueuedMessages |
156 |
my $messages_processed = C4::Letters::SendQueuedMessages( { type => 'email' }); |
158 |
my $messages_processed = C4::Letters::SendQueuedMessages( { type => 'email' }); |
157 |
- |
|
|