From ff8435d4f69f5eb5add9bf3565411e8f6ec6d0f0 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 --- 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 3f20306..9b5c469 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.1.4