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

(-)a/t/db_dependent/Koha/Club/Hold.t (-5 / +3 lines)
Lines 42-51 subtest 'add' => sub { Link Here
42
42
43
    my $club = $builder->build_object({ class => 'Koha::Clubs' });
43
    my $club = $builder->build_object({ class => 'Koha::Clubs' });
44
    my $library = $builder->build_object({ class => 'Koha::Libraries' });
44
    my $library = $builder->build_object({ class => 'Koha::Libraries' });
45
    my $item1 = $builder->build_sample_item({ branchcode => $library->branchcode });
45
    my $item1 = $builder->build_sample_item({ library => $library->branchcode });
46
    my $item2 = $builder->build_sample_item({ branchcode => $library->branchcode });
46
    my $item2 = $builder->build_sample_item({ library => $library->branchcode });
47
47
48
    use Data::Printer colored => 1;
49
    try {
48
    try {
50
        Koha::Club::Hold::add({ club_id => $club->id, biblio_id => $item1->biblionumber, pickup_library_id => $library->branchcode });
49
        Koha::Club::Hold::add({ club_id => $club->id, biblio_id => $item1->biblionumber, pickup_library_id => $library->branchcode });
51
    } catch {
50
    } catch {
Lines 84-87 subtest 'add' => sub { Link Here
84
    is($patron_hold->patron_id, $hold->borrowernumber, 'Patron must be the same');
83
    is($patron_hold->patron_id, $hold->borrowernumber, 'Patron must be the same');
85
84
86
    $schema->storage->txn_rollback;
85
    $schema->storage->txn_rollback;
87
}
86
}
88
- 

Return to bug 24546