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

(-)a/t/db_dependent/Koha/Patrons.t (+3 lines)
Lines 87-92 subtest 'library' => sub { Link Here
87
87
88
subtest 'guarantees' => sub {
88
subtest 'guarantees' => sub {
89
    plan tests => 13;
89
    plan tests => 13;
90
91
    t::lib::Mocks::mock_preference( 'borrowerRelationship', 'test|test2' );
92
90
    my $guarantees = $new_patron_1->guarantee_relationships;
93
    my $guarantees = $new_patron_1->guarantee_relationships;
91
    is( ref($guarantees), 'Koha::Patron::Relationships', 'Koha::Patron->guarantees should return a Koha::Patrons result set in a scalar context' );
94
    is( ref($guarantees), 'Koha::Patron::Relationships', 'Koha::Patron->guarantees should return a Koha::Patrons result set in a scalar context' );
92
    is( $guarantees->count, 0, 'new_patron_1 should have 0 guarantee relationships' );
95
    is( $guarantees->count, 0, 'new_patron_1 should have 0 guarantee relationships' );
(-)a/t/db_dependent/Members.t (-1 / +3 lines)
Lines 265-270 $patstodel = GetBorrowersToExpunge( {not_borrowed_since => '2016-01-02', patron_ Link Here
265
ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Staff patron not deleted by last issue date');
265
ok( scalar(@$patstodel) == 1 && $patstodel->[0]->{'borrowernumber'} eq $bor2inlist,'Staff patron not deleted by last issue date');
266
266
267
Koha::Patrons->find($bor1inlist)->set({ categorycode => 'CIVILIAN' })->store;
267
Koha::Patrons->find($bor1inlist)->set({ categorycode => 'CIVILIAN' })->store;
268
269
t::lib::Mocks::mock_preference( 'borrowerRelationship', 'test' );
270
268
my $relationship = Koha::Patron::Relationship->new( { guarantor_id => $bor1inlist, guarantee_id => $guarantee->{borrowernumber}, relationship => 'test' } )->store();
271
my $relationship = Koha::Patron::Relationship->new( { guarantor_id => $bor1inlist, guarantee_id => $guarantee->{borrowernumber}, relationship => 'test' } )->store();
269
272
270
$patstodel = GetBorrowersToExpunge( {patron_list_id => $list1->patron_list_id()} );
273
$patstodel = GetBorrowersToExpunge( {patron_list_id => $list1->patron_list_id()} );
271
- 

Return to bug 14570