From f6bdc2f9378c0f2f932150f75c43fe28b96eb37e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 20 Oct 2016 08:54:21 +0100 Subject: [PATCH] Bug 5260: make tests pass even without patron cat 'PT' Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- t/db_dependent/Letters.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Letters.t b/t/db_dependent/Letters.t index 3f20306795..9b5c46997c 100644 --- a/t/db_dependent/Letters.t +++ b/t/db_dependent/Letters.t @@ -61,11 +61,12 @@ $dbh->do(q|DELETE FROM message_transport_types|); my $library = $builder->build({ source => 'Branch', }); +my $patron_category = $builder->build({ source => 'Category' }); my $date = dt_from_string; my $borrowernumber = AddMember( firstname => 'Jane', surname => 'Smith', - categorycode => 'PT', + categorycode => $patron_category,, branchcode => $library->{branchcode}, dateofbirth => $date, ); @@ -473,7 +474,7 @@ my $serial = $serials[0]; my $borrowernumber = AddMember( firstname => 'John', surname => 'Smith', - categorycode => 'PT', + categorycode => $patron_category, branchcode => $library->{branchcode}, dateofbirth => $date, email => 'john.smith@test.de', -- 2.39.5