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

(-)a/t/db_dependent/Holds.t (-2 / +2 lines)
Lines 7-13 use t::lib::TestBuilder; Link Here
7
7
8
use C4::Context;
8
use C4::Context;
9
9
10
use Test::More tests => 73;
10
use Test::More tests => 74;
11
use Test::Exception;
11
use Test::Exception;
12
12
13
use MARC::Record;
13
use MARC::Record;
Lines 1574-1580 subtest 'CanItemBeReserved / recall' => sub { Link Here
1574
        recalldate => '2020-05-04 10:10:10',
1574
        recalldate => '2020-05-04 10:10:10',
1575
        item_level_recall => 1,
1575
        item_level_recall => 1,
1576
    })->store;
1576
    })->store;
1577
    is( CanItemBeReserved( $patron1->borrowernumber, $item1->itemnumber, $library1->branchcode )->{status}, 'recall', "Can't reserve an item that they have already recalled" );
1577
    is( CanItemBeReserved( $patron1, $item1, $library1->branchcode )->{status}, 'recall', "Can't reserve an item that they have already recalled" );
1578
1578
1579
    $schema->storage->txn_rollback;
1579
    $schema->storage->txn_rollback;
1580
};
1580
};
(-)a/t/db_dependent/Koha/Item.t (-1 / +1 lines)
Lines 20-26 Link Here
20
use Modern::Perl;
20
use Modern::Perl;
21
use utf8;
21
use utf8;
22
22
23
use Test::More tests => 14;
23
use Test::More tests => 15;
24
use Test::Exception;
24
use Test::Exception;
25
25
26
use C4::Biblio qw( GetMarcSubfieldStructure );
26
use C4::Biblio qw( GetMarcSubfieldStructure );
(-)a/t/db_dependent/Koha/Patron.t (-1 / +1 lines)
Lines 1054-1059 subtest 'messages' => sub { Link Here
1054
subtest 'recalls() tests' => sub {
1054
subtest 'recalls() tests' => sub {
1055
1055
1056
    plan tests => 2;
1056
    plan tests => 2;
1057
    my $patron = $builder->build_object( { class => 'Koha::Patrons' } );
1057
    my $biblio1 = $builder->build_object({ class => 'Koha::Biblios' });
1058
    my $biblio1 = $builder->build_object({ class => 'Koha::Biblios' });
1058
    my $item1 = $builder->build_object({ class => 'Koha::Items' }, { value => { biblionumber => $biblio1->biblionumber } });
1059
    my $item1 = $builder->build_object({ class => 'Koha::Items' }, { value => { biblionumber => $biblio1->biblionumber } });
1059
    my $biblio2 = $builder->build_object({ class => 'Koha::Biblios' });
1060
    my $biblio2 = $builder->build_object({ class => 'Koha::Biblios' });
1060
- 

Return to bug 19532