Lines 379-386
Chapters: <<article_requests.chapters>>
Link Here
|
379 |
Notes: <<article_requests.patron_notes>> |
379 |
Notes: <<article_requests.patron_notes>> |
380 |
|; |
380 |
|; |
381 |
reset_template( { template => $template, code => $code, module => 'circulation' } ); |
381 |
reset_template( { template => $template, code => $code, module => 'circulation' } ); |
382 |
my $article_request = $builder->build({ source => 'ArticleRequest' }); |
382 |
my $article_request = $builder->build_object( |
383 |
Koha::ArticleRequests->find( $article_request->{id} )->cancel; |
383 |
{ |
|
|
384 |
class => 'Koha::ArticleRequests', |
385 |
value => { debit_id => undef } |
386 |
} |
387 |
); |
388 |
$article_request->cancel; |
384 |
my $letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next; |
389 |
my $letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next; |
385 |
|
390 |
|
386 |
my $tt_template = q| |
391 |
my $tt_template = q| |
Lines 401-407
Chapters: [% article_request.chapters %]
Link Here
|
401 |
Notes: [% article_request.patron_notes %] |
406 |
Notes: [% article_request.patron_notes %] |
402 |
|; |
407 |
|; |
403 |
reset_template( { template => $tt_template, code => $code, module => 'circulation' } ); |
408 |
reset_template( { template => $tt_template, code => $code, module => 'circulation' } ); |
404 |
Koha::ArticleRequests->find( $article_request->{id} )->cancel; |
409 |
$article_request->cancel; |
405 |
my $tt_letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next; |
410 |
my $tt_letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next; |
406 |
is( $tt_letter->content, $letter->content, 'Compare AR_* notices' ); |
411 |
is( $tt_letter->content, $letter->content, 'Compare AR_* notices' ); |
407 |
isnt( $tt_letter->message_id, $letter->message_id, 'Comparing AR_* notices should compare 2 different messages' ); |
412 |
isnt( $tt_letter->message_id, $letter->message_id, 'Comparing AR_* notices should compare 2 different messages' ); |
408 |
- |
|
|