From 867b19c7df5c8a837e8c9ce631a3e9d95f31060f Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 21 Jul 2020 10:08:02 +0200 Subject: [PATCH] Bug 23820: Fix Koha/Club/Hold.t kohadev-koha@kohadevbox:/kohadevbox/koha$ prove t/db_dependent/Koha/Club/Hold.t t/db_dependent/Koha/Club/Hold.t .. Patron(238) Hold cannot be placed. Reason: libraryNotPickupLocation at /kohadevbox/koha/Koha/Club/Hold.pm line 98. # Looks like you planned 5 tests but ran 4. t/db_dependent/Koha/Club/Hold.t .. 1/1 # Failed test 'add' # at t/db_dependent/Koha/Club/Hold.t line 86. Can't call method "borrowernumber" on an undefined value at t/db_dependent/Koha/Club/Hold.t line 83. Signed-off-by: Jonathan Druart (cherry picked from commit 4f5f5d88b98c2d1f6cc20bc6be6f5b41fb7d3c48) Signed-off-by: Lucas Gass --- t/db_dependent/Koha/Club/Hold.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Club/Hold.t b/t/db_dependent/Koha/Club/Hold.t index 6aee1e4dcf..8bc7f5811d 100644 --- a/t/db_dependent/Koha/Club/Hold.t +++ b/t/db_dependent/Koha/Club/Hold.t @@ -41,7 +41,7 @@ subtest 'add' => sub { $schema->storage->txn_begin; my $club = $builder->build_object({ class => 'Koha::Clubs' }); - my $library = $builder->build_object({ class => 'Koha::Libraries' }); + my $library = $builder->build_object({ class => 'Koha::Libraries', value => { pickup_location => 1 } }); my $item1 = $builder->build_sample_item({ library => $library->branchcode }); my $item2 = $builder->build_sample_item({ library => $library->branchcode }); -- 2.39.5