Bugzilla – Attachment 171825 Details for
Bug 37892
Patron category 'can be a guarantee' means that same category cannot be a guarantor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37892: (QA follow-up) Add tests for ->is_guarantor/ee
Bug-37892-QA-follow-up-Add-tests-for--isguarantore.patch (text/plain), 1.63 KB, created by
Marcel de Rooy
on 2024-09-20 09:09:43 UTC
(
hide
)
Description:
Bug 37892: (QA follow-up) Add tests for ->is_guarantor/ee
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2024-09-20 09:09:43 UTC
Size:
1.63 KB
patch
obsolete
>From bc94cce832acf39de6a67ca357937976b1189dc8 Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 20 Sep 2024 08:44:30 +0000 >Subject: [PATCH] Bug 37892: (QA follow-up) Add tests for ->is_guarantor/ee >Content-Type: text/plain; charset=utf-8 > >Test plan: >Run t/db_dependent/Koha/Patron.t > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Koha/Patron.t | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Patron.t b/t/db_dependent/Koha/Patron.t >index b267d20375..b6876937ae 100755 >--- a/t/db_dependent/Koha/Patron.t >+++ b/t/db_dependent/Koha/Patron.t >@@ -426,12 +426,16 @@ subtest 'guarantor checks on patron creation / update tests' => sub { > $builder->build_object( { class => 'Koha::Patrons', value => { categorycode => $category->categorycode } } ); > > subtest 'patron update tests' => sub { >- plan tests => 4; >+ plan tests => 7; > ok( > $guarantee->add_guarantor( { guarantor_id => $guarantor->borrowernumber, relationship => 'guarantor' } ), > "Relationship is added, no problem" > ); >- is( $guarantor->guarantee_relationships->count, 1, 'Relationship added' ); >+ is( $guarantor->is_guarantor, 1, 'Is a guarantor' ); >+ is( $guarantor->is_guarantee, 0, 'Is no guarantee' ); >+ is( $guarantee->is_guarantor, 0, 'Is no guarantor' ); >+ is( $guarantee->is_guarantee, 1, 'Is a guarantee' ); >+ > ok( $guarantor->surname("Duck")->store(), "Updating guarantor is okay" ); > ok( $guarantee->surname("Duck")->store(), "Updating guarantee is okay" ); > }; >-- >2.30.2
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 37892
:
171334
|
171335
|
171336
|
171337
|
171451
|
171463
|
171464
|
171465
|
171466
|
171467
|
171472
|
171475
|
171476
|
171477
|
171478
|
171479
|
171480
|
171546
|
171547
|
171548
|
171549
|
171550
|
171663
|
171664
|
171665
|
171824
|
171825
|
171826
|
172896
|
172897
|
172898