Bugzilla – Attachment 69619 Details for
Bug 19776
Test failing randomly - fix categorycode vs category_type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19776: Fix random failures (category_type vs categorycode='X')
Bug-19776-Fix-random-failures-categorytype-vs-cate.patch (text/plain), 5.37 KB, created by
Jonathan Druart
on 2017-12-07 17:43:07 UTC
(
hide
)
Description:
Bug 19776: Fix random failures (category_type vs categorycode='X')
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-12-07 17:43:07 UTC
Size:
5.37 KB
patch
obsolete
>From d1fc2e7801ec835e9307bf630e9243de0f83052c Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 7 Dec 2017 14:42:03 -0300 >Subject: [PATCH] Bug 19776: Fix random failures (category_type vs > categorycode='X') > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Circulation.t | 2 +- > t/db_dependent/Circulation/MarkIssueReturned.t | 2 +- > t/db_dependent/Circulation/NoIssuesChargeGuarantees.t | 2 +- > t/db_dependent/Circulation/SwitchOnSiteCheckouts.t | 2 +- > t/db_dependent/Circulation/dateexpiry.t | 2 +- > t/db_dependent/DecreaseLoanHighHolds.t | 2 +- > 6 files changed, 6 insertions(+), 6 deletions(-) > >diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t >index a2dbf33a98..1eb4fbc29a 100755 >--- a/t/db_dependent/Circulation.t >+++ b/t/db_dependent/Circulation.t >@@ -63,7 +63,7 @@ my $itemtype = $builder->build( > value => { notforloan => undef, rentalcharge => 0, defaultreplacecost => undef, processfee => undef } > } > )->{itemtype}; >-my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); > > my $CircControl = C4::Context->preference('CircControl'); > my $HomeOrHoldingBranch = C4::Context->preference('HomeOrHoldingBranch'); >diff --git a/t/db_dependent/Circulation/MarkIssueReturned.t b/t/db_dependent/Circulation/MarkIssueReturned.t >index 403b1d8778..f13ba74ed4 100644 >--- a/t/db_dependent/Circulation/MarkIssueReturned.t >+++ b/t/db_dependent/Circulation/MarkIssueReturned.t >@@ -39,7 +39,7 @@ my $library = $builder->build({ source => 'Branch' }); > C4::Context->_new_userenv('xxx'); > C4::Context->set_userenv(0,0,0,'firstname','surname', $library->{branchcode}, $library->{branchname}, '', '', ''); > >-my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); > my $patron = $builder->build({ source => 'Borrower', value => { branchcode => $library->{branchcode}, categorycode => $patron_category->{categorycode} } } ); > > my $biblioitem = $builder->build( { source => 'Biblioitem' } ); >diff --git a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t >index 201a7650fb..7551004360 100644 >--- a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t >+++ b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t >@@ -42,7 +42,7 @@ my $item = $builder->build( > } > ); > >-my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); > my $patron = $builder->build( > { > source => 'Borrower', >diff --git a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t >index 8a7fb5202d..cdd8ad48fd 100644 >--- a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t >+++ b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t >@@ -50,7 +50,7 @@ my $branch = $builder->build({ > source => 'Branch', > }); > >-my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); > my $patron = $builder->build({ > source => 'Borrower', > value => { >diff --git a/t/db_dependent/Circulation/dateexpiry.t b/t/db_dependent/Circulation/dateexpiry.t >index c8b5f49c85..c01d9aa333 100644 >--- a/t/db_dependent/Circulation/dateexpiry.t >+++ b/t/db_dependent/Circulation/dateexpiry.t >@@ -34,7 +34,7 @@ my $builder = t::lib::TestBuilder->new(); > > $ENV{ DEBUG } = 0; > >-my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); > > subtest 'Tests for CanBookBeIssued related to dateexpiry' => sub { > plan tests => 4; >diff --git a/t/db_dependent/DecreaseLoanHighHolds.t b/t/db_dependent/DecreaseLoanHighHolds.t >index 49d3cd8492..52cd536061 100755 >--- a/t/db_dependent/DecreaseLoanHighHolds.t >+++ b/t/db_dependent/DecreaseLoanHighHolds.t >@@ -51,7 +51,7 @@ C4::Context->_new_userenv('xxx'); > C4::Context->set_userenv( 0, 0, 0, 'firstname', 'surname', $library->{branchcode}, 'Midway Public Library', '', '', '' ); > is( C4::Context->userenv->{branch}, $library->{branchcode}, 'userenv set' ); > >-my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); >+my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); > my @patrons; > for my $i ( 1 .. 20 ) { > my $patron = Koha::Patron->new( >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19776
: 69619 |
69805