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

(-)a/t/db_dependent/Reserves.t (-8 / +3 lines)
Lines 714-728 $cache->clear_from_cache("MarcStructure-1-$frameworkcode"); Link Here
714
$cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode");
714
$cache->clear_from_cache("default_value_for_mod_marc-$frameworkcode");
715
$cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
715
$cache->clear_from_cache("MarcSubfieldStructure-$frameworkcode");
716
716
717
# we reached the finish
718
$schema->storage->txn_rollback();
719
720
subtest '_koha_notify_reserve() tests' => sub {
717
subtest '_koha_notify_reserve() tests' => sub {
721
718
722
    plan tests => 2;
719
    plan tests => 2;
723
720
724
    $schema->storage->txn_begin;
725
726
    my $wants_hold_and_email = {
721
    my $wants_hold_and_email = {
727
        wants_digest => '0',
722
        wants_digest => '0',
728
        transports => {
723
        transports => {
Lines 790-797 subtest '_koha_notify_reserve() tests' => sub { Link Here
790
        })->next()->to_address();
785
        })->next()->to_address();
791
    is($email_message_address, undef ,"We should not populate the hold message with the email address, sending will do so");
786
    is($email_message_address, undef ,"We should not populate the hold message with the email address, sending will do so");
792
787
793
    $schema->storage->txn_rollback();
794
795
};
788
};
796
789
797
sub count_hold_print_messages {
790
sub count_hold_print_messages {
Lines 803-805 sub count_hold_print_messages { Link Here
803
    });
796
    });
804
    return $message_count->[0]->[0];
797
    return $message_count->[0]->[0];
805
}
798
}
806
- 
799
800
# we reached the finish
801
$schema->storage->txn_rollback();

Return to bug 18478