From c4f7164cb92c63043c4877aef79714c5461496c9 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 26 May 2014 04:19:19 +0000 Subject: [PATCH] Bug 6254: (follow-up) work-around to fix a failing test case Content-Type: text/plain; charset=utf-8 This patch ensures that a patron category that is present in the (English) sample data is used for the ILS-DI tests, avoiding a situation where one part of AddMember was trying to access a patron category via DBIC but failed because it was not visible to it yet. Note that this will become easier once C4::Context->dbh and DBIC are using the same base DBI database handles. Signed-off-by: Galen Charlton --- t/db_dependent/ILSDI_Services.t | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/db_dependent/ILSDI_Services.t b/t/db_dependent/ILSDI_Services.t index 43fbeea..4d584a2 100644 --- a/t/db_dependent/ILSDI_Services.t +++ b/t/db_dependent/ILSDI_Services.t @@ -22,7 +22,7 @@ $dbh->{RaiseError} = 1; my %data = ( firstname => 'my firstname', surname => 'my surname', - categorycode => 'UT', + categorycode => 'PT', branchcode => 'UT', cardnumber => 'ilsdi-cardnumber', userid => 'ilsdi-userid', @@ -30,11 +30,11 @@ my %data = ( ); # Crate patron category -unless ( GetBorrowercategory('UT') ) { +unless ( GetBorrowercategory('PT') ) { $dbh->do("INSERT INTO categories - (categorycode,description,enrolmentperiod,upperagelimit,enrolmentfee,overduenoticerequired,reservefee,category_type) + (categorycode,description,enrolmentperiod,upperagelimit,enrolmentfee,overduenoticerequired,reservefee,category_type,default_privacy) VALUES - ('UT','Unit tester',99,99,0.000000,1,0.000000,'C');"); + ('PT','Unit tester',99,99,0.000000,1,0.000000,'C','default');"); } # Create branch -- 1.7.7.6