View | Details | Raw Unified | Return to bug 17964
Collapse All | Expand All

(-)a/t/db_dependent/Letters/TemplateToolkit.t (-8 / +7 lines)
Lines 338-344 Your library. Link Here
338
        |;
338
        |;
339
        my $tt_letter = process_letter( { template => $tt_template, %$params });
339
        my $tt_letter = process_letter( { template => $tt_template, %$params });
340
340
341
        is( $tt_letter->{content}, $letter->{content}, );
341
        is( $tt_letter->{content}, $letter->{content}, 'Verified letter content' );
342
    };
342
    };
343
343
344
    subtest 'AR_*' => sub {
344
    subtest 'AR_*' => sub {
Lines 418-424 Thank you for visiting <<branches.branchname>>. Link Here
418
|;
418
|;
419
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
419
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
420
        my $checkin_template = q[
420
        my $checkin_template = q[
421
The following items have been checkin out:
421
The following items have been checked out:
422
----
422
----
423
<<biblio.title>> was due on <<old_issues.date_due | dateonly>>
423
<<biblio.title>> was due on <<old_issues.date_due | dateonly>>
424
----
424
----
Lines 448-454 Thank you for visiting [% branch.branchname %]. Link Here
448
|;
448
|;
449
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
449
        reset_template( { template => $checkout_template, code => $checkout_code, module => 'circulation' } );
450
        $checkin_template = q[
450
        $checkin_template = q[
451
The following items have been checkin out:
451
The following items have been checked out:
452
----
452
----
453
[% biblio.title %] was due on [% old_checkout.date_due | $KohaDates %]
453
[% biblio.title %] was due on [% old_checkout.date_due | $KohaDates %]
454
----
454
----
Lines 466-475 Thank you for visiting [% branch.branchname %]. Link Here
466
        AddReturn( $item2->{barcode} );
466
        AddReturn( $item2->{barcode} );
467
        my $second_checkin_tt_letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next;
467
        my $second_checkin_tt_letter = Koha::Notice::Messages->search( {}, { order_by => { -desc => 'message_id' } } )->next;
468
468
469
        is( $first_checkout_tt_letter->content, $first_checkout_letter->content, );
469
        is( $first_checkout_tt_letter->content, $first_checkout_letter->content, 'Verify first checkout letter' );
470
        is( $second_checkout_tt_letter->content, $second_checkout_letter->content, );
470
        is( $second_checkout_tt_letter->content, $second_checkout_letter->content, 'Verify second checkout letter' );
471
        is( $first_checkin_tt_letter->content, $first_checkin_letter->content, );
471
        is( $first_checkin_tt_letter->content, $first_checkin_letter->content, 'Verify first checkin letter'  );
472
        is( $second_checkin_tt_letter->content, $second_checkin_letter->content, );
472
        is( $second_checkin_tt_letter->content, $second_checkin_letter->content, 'Verify second checkin letter' );
473
473
474
    };
474
    };
475
};
475
};
476
- 

Return to bug 17964