Bugzilla – Attachment 105323 Details for
Bug 24413
MarkLostItemsAsReturned functionality does not lift restrictions caused by long overdues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24413: (follow-up) Add tests
Bug-24413-follow-up-Add-tests.patch (text/plain), 1.22 KB, created by
Jonathan Druart
on 2020-05-25 08:15:02 UTC
(
hide
)
Description:
Bug 24413: (follow-up) Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-05-25 08:15:02 UTC
Size:
1.22 KB
patch
obsolete
>From 785efcce3ffdc9df05d924b6fc07ed065173e2b8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 25 May 2020 10:14:19 +0200 >Subject: [PATCH] Bug 24413: (follow-up) Add tests > >Add missing transaction. >--- > t/db_dependent/Circulation/MarkIssueReturned.t | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/t/db_dependent/Circulation/MarkIssueReturned.t b/t/db_dependent/Circulation/MarkIssueReturned.t >index af455e1349..4ff85a9ae4 100644 >--- a/t/db_dependent/Circulation/MarkIssueReturned.t >+++ b/t/db_dependent/Circulation/MarkIssueReturned.t >@@ -194,6 +194,8 @@ subtest 'Manually pass a return date' => sub { > subtest 'AutoRemoveOverduesRestrictions' => sub { > plan tests => 2; > >+ $schema->storage->txn_begin; >+ > t::lib::Mocks::mock_preference('AutoRemoveOverduesRestrictions', 1); > > my $patron = $builder->build_object({ class => 'Koha::Patrons' }); >@@ -223,4 +225,6 @@ subtest 'AutoRemoveOverduesRestrictions' => sub { > > $debarments = Koha::Patron::Debarments::GetDebarments({ borrowernumber => $patron->borrowernumber }); > is( scalar @$debarments, 0, 'OVERDUES debarment is removed if patron does not have overdues' ); >+ >+ $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 24413
:
99111
|
99369
|
102606
|
102607
|
104843
|
104844
|
104845
|
104859
|
104860
|
104861
|
105205
|
105206
|
105207
| 105323