From 9b15066fef97480867f60a02de317a8e6831926e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 19 Nov 2019 09:40:07 +0100 Subject: [PATCH] Bug 24062: [DO NOT PUSH] Proof Only apply this patch and confirm the assumption is correct (test was failing because X was generated for the patron category's type) Signed-off-by: Martin Renvoize --- t/db_dependent/Circulation.t | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index e35b59fe51..471983bdb5 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -1956,6 +1956,13 @@ subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub { plan tests => 2; my $library = $builder->build( { source => 'Branch' } ); + my $patron_category_x = $builder->build_object( + { + class => 'Koha::Patron::Categories', + value => { category_type => 'X' } + } + ); + my $patron1 = $builder->build_object( { class => 'Koha::Patrons', @@ -1971,6 +1978,7 @@ subtest 'CanBookBeIssued + AutoReturnCheckedOutItems' => sub { class => 'Koha::Patrons', value => { branchcode => $library->{branchcode}, + categorycode => $patron_category_x->categorycode, firstname => "Billy", surname => "Madison", } -- 2.20.1