Bugzilla – Attachment 157110 Details for
Bug 23260
Anonymize (remove) patron data from items_last_borrower
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23260: Add a new test
Bug-23260-Add-a-new-test.patch (text/plain), 1.41 KB, created by
Nick Clemens (kidclamp)
on 2023-10-13 15:32:05 UTC
(
hide
)
Description:
Bug 23260: Add a new test
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-10-13 15:32:05 UTC
Size:
1.41 KB
patch
obsolete
>From 51b8cf4191ad023e2a6f4dc11ea0a6448e3d9b9b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 29 Jan 2020 10:07:03 +0100 >Subject: [PATCH] Bug 23260: Add a new test > >--- > t/db_dependent/Koha/Patrons.t | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Koha/Patrons.t b/t/db_dependent/Koha/Patrons.t >index 17b0a6020a..2101a65ed8 100755 >--- a/t/db_dependent/Koha/Patrons.t >+++ b/t/db_dependent/Koha/Patrons.t >@@ -1293,7 +1293,7 @@ subtest 'anonymise items_last_borrower' => sub { > t::lib::Mocks::mock_preference('StoreLastBorrower', 1); > > subtest 'withrawn, lost and damaged items' => sub { >- plan tests => 5; >+ plan tests => 6; > > my $patron = $builder->build_object( > { >@@ -1351,7 +1351,8 @@ subtest 'anonymise items_last_borrower' => sub { > $item_2->itemlost(1)->store; > $item_3->damaged(1)->store; > >- Koha::Patrons->search_patrons_to_anonymise( { before => '2010-10-12' } )->anonymise_issue_history(); >+ my $nb_rows = Koha::Patrons->search_patrons_to_anonymise( { before => '2010-10-12' } )->anonymise_issue_history(); >+ is( $nb_rows, 4, 'anonymise_issue_history should have returned the number of checkouts anonymised'); > > my $dbh = C4::Context->dbh; > my $sth = $dbh->prepare(q|SELECT borrowernumber FROM items_last_borrower where itemnumber = ?|); >-- >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 23260
:
92863
|
92864
|
93052
|
94858
|
94859
|
95033
|
95457
|
95458
|
95459
|
95460
|
95651
|
95698
|
95699
|
95700
|
95701
|
95769
|
95770
|
95771
|
95772
|
96791
|
97841
|
97842
|
98044
|
98053
|
98054
|
98064
|
98282
|
98349
|
98352
|
112734
|
112735
|
112736
|
112737
|
112738
|
112739
|
112740
|
112741
|
112742
|
112743
|
117974
|
117975
|
117976
|
117977
|
117978
|
117979
|
117980
|
117981
|
117982
|
117983
|
120522
|
120523
|
120524
|
120525
|
120526
|
120527
|
120528
|
120529
|
120530
|
120531
|
122963
|
122964
|
122965
|
122966
|
122967
|
122968
|
122969
|
122970
|
122971
|
122972
|
145175
|
145176
|
145177
|
145178
|
145179
|
145180
|
145181
|
145182
|
145183
|
145184
|
157106
|
157107
|
157108
|
157109
|
157110
|
157111
|
157112
|
157113
|
157114
|
157115
|
157116
|
159291
|
159292
|
159293
|
159294
|
159298
|
159299
|
159300
|
159301
|
164129
|
164130
|
164131
|
164132
|
164133