Bugzilla – Attachment 115861 Details for
Bug 27554
Clarify and add tests for Koha::Patrons->update_category_to child to adult
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27554: Fix test for Koha::Patrons->update_category_to child to adult
Bug-27554-Fix-test-for-KohaPatrons-updatecategoryt.patch (text/plain), 1.77 KB, created by
David Nind
on 2021-01-27 09:55:58 UTC
(
hide
)
Description:
Bug 27554: Fix test for Koha::Patrons->update_category_to child to adult
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-01-27 09:55:58 UTC
Size:
1.77 KB
patch
obsolete
>From f877cb0f8dd306169b2de18eb6bc9b33926d0659 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 26 Jan 2021 16:17:32 +0100 >Subject: [PATCH] Bug 27554: Fix test for Koha::Patrons->update_category_to > child to adult > >This patch fixes the test by using too_old instead of too_young > >Test plan : >Apply patch, run t/db_dependent/Patrons.t, tests are OK > >Signed-off-by: David Nind <david@davidnind.com> >--- > t/db_dependent/Patrons.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Patrons.t b/t/db_dependent/Patrons.t >index e890472a37..5f81ba33cb 100755 >--- a/t/db_dependent/Patrons.t >+++ b/t/db_dependent/Patrons.t >@@ -195,7 +195,7 @@ subtest "Update patron categories" => sub { > is( Koha::Patrons->search_patrons_to_update_category({from=>$c_categorycode})->update_category_to({category=>$c_categorycode_2}),3,'Three child patrons updated to another child category with no params passed'); > is( Koha::Patrons->find($adult1->borrowernumber)->guarantee_relationships->guarantees->count,3,'Guarantees not removed when made changing child categories'); > >- is( Koha::Patrons->search_patrons_to_update_category({from=>$c_categorycode_2,too_young=>1})->update_category_to({category=>$a_categorycode}),1,'One child patron updated to adult category'); >+ is( Koha::Patrons->search_patrons_to_update_category({from=>$c_categorycode_2,too_old=>1})->update_category_to({category=>$a_categorycode}),1,'One child patron updated to adult category'); > is( Koha::Patrons->find($child3->borrowernumber)->categorycode,$a_categorycode,'The over age patron has been updated to adult category'); > is( Koha::Patrons->find($adult1->borrowernumber)->guarantee_relationships->guarantees->count,2,'Guarantee was removed when made adult'); > >-- >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 27554
:
115849
|
115850
|
115860
|
115861
|
115933
|
115934
|
116097
|
116171