From 558be2f63243a057ed5f63e90e9483899779106b Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 16 Aug 2019 14:43:42 -0300 Subject: [PATCH] Bug 14570: (QA follow-up) Fix tests Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Patrons.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t index e511e195f2..e528a59bbd 100644 --- a/t/db_dependent/Koha/Patrons.t +++ b/t/db_dependent/Koha/Patrons.t @@ -87,6 +87,9 @@ subtest 'library' => sub { subtest 'guarantees' => sub { plan tests => 13; + + t::lib::Mocks::mock_preference( 'borrowerRelationship', 'test|test2' ); + my $guarantees = $new_patron_1->guarantee_relationships; is( ref($guarantees), 'Koha::Patron::Relationships', 'Koha::Patron->guarantees should return a Koha::Patrons result set in a scalar context' ); is( $guarantees->count, 0, 'new_patron_1 should have 0 guarantee relationships' ); -- 2.22.1