Bugzilla – Attachment 106195 Details for
Bug 24151
Add a pseudonymization process for patrons and transactions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24151: Add description for tests
Bug-24151-Add-description-for-tests.patch (text/plain), 2.70 KB, created by
Jonathan Druart
on 2020-06-23 09:49:33 UTC
(
hide
)
Description:
Bug 24151: Add description for tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-06-23 09:49:33 UTC
Size:
2.70 KB
patch
obsolete
>From 26f62b55e986a69b600c84ec8f5f6542236c10e8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 23 Jun 2020 11:49:15 +0200 >Subject: [PATCH] Bug 24151: Add description for tests > >--- > t/db_dependent/Koha/Pseudonymization.t | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > >diff --git a/t/db_dependent/Koha/Pseudonymization.t b/t/db_dependent/Koha/Pseudonymization.t >index 0124e08475..b1d12ad0ab 100644 >--- a/t/db_dependent/Koha/Pseudonymization.t >+++ b/t/db_dependent/Koha/Pseudonymization.t >@@ -102,16 +102,16 @@ subtest 'Koha::Anonymized::Transactions tests' => sub { > $pseudonymized = Koha::PseudonymizedTransactions->search( { itemnumber => $item->itemnumber } )->next; > like( $pseudonymized->hashed_borrowernumber, > qr{^\$2a\$08\$}, "The hashed_borrowernumber must be a bcrypt hash" ); >- is( $pseudonymized->datetime, $statistic->datetime ); >- is( $pseudonymized->transaction_branchcode, $statistic->branch ); >- is( $pseudonymized->transaction_type, $statistic->type ); >- is( $pseudonymized->itemnumber, $item->itemnumber ); >- is( $pseudonymized->itemtype, $item->effective_itemtype ); >- is( $pseudonymized->holdingbranch, $item->holdingbranch ); >- is( $pseudonymized->homebranch, $item->homebranch ); >- is( $pseudonymized->location, $item->location ); >- is( $pseudonymized->itemcallnumber, $item->itemcallnumber ); >- is( $pseudonymized->ccode, $item->ccode ); >+ is( $pseudonymized->datetime, $statistic->datetime, 'datetime attribute copied correctly' ); >+ is( $pseudonymized->transaction_branchcode, $statistic->branch, 'transaction_branchcode copied correctly' ); >+ is( $pseudonymized->transaction_type, $statistic->type, 'transacttion_type copied correctly' ); >+ is( $pseudonymized->itemnumber, $item->itemnumber, 'itemnumber copied correctly' ); >+ is( $pseudonymized->itemtype, $item->effective_itemtype, 'itemtype copied correctly' ); >+ is( $pseudonymized->holdingbranch, $item->holdingbranch, 'holdingbranch copied correctly' ); >+ is( $pseudonymized->homebranch, $item->homebranch, 'homebranch copied correctly' ); >+ is( $pseudonymized->location, $item->location, 'location copied correctly' ); >+ is( $pseudonymized->itemcallnumber, $item->itemcallnumber, 'itemcallnumber copied correctly' ); >+ is( $pseudonymized->ccode, $item->ccode, 'ccode copied correctly' ); > > $schema->storage->txn_rollback; > }; >-- >2.20.1
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 24151
:
95959
|
95960
|
95961
|
95962
|
95963
|
95964
|
95965
|
95966
|
95967
|
95968
|
95969
|
95970
|
95971
|
95972
|
95973
|
95974
|
95975
|
95976
|
97240
|
97241
|
97242
|
97243
|
97244
|
97245
|
97246
|
97247
|
97248
|
97249
|
97250
|
97251
|
97252
|
101034
|
101035
|
101036
|
101037
|
101038
|
101039
|
101040
|
101041
|
101042
|
101043
|
101044
|
101045
|
101046
|
101047
|
101048
|
101049
|
105801
|
105802
|
105803
|
105804
|
105805
|
105806
|
105807
|
105808
|
105809
|
105810
|
105811
|
105812
|
105813
|
105814
|
105815
|
105816
|
106032
|
106033
|
106034
|
106035
|
106036
|
106037
|
106038
|
106039
|
106040
|
106041
|
106042
|
106043
|
106044
|
106045
|
106046
|
106047
|
106048
|
106049
| 106195 |
106255
|
107127
|
107225