Bugzilla – Attachment 73343 Details for
Bug 18382
action_logs entry for module HOLDS, action SUSPEND is spammy
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18382: Add a test
Bug-18382-Add-a-test.patch (text/plain), 1.18 KB, created by
Jonathan Druart
on 2018-03-27 17:10:32 UTC
(
hide
)
Description:
Bug 18382: Add a test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-27 17:10:32 UTC
Size:
1.18 KB
patch
obsolete
>From e3d5983fd66f6a59c95fdde9091a2eb459c9aff3 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 27 Mar 2018 14:09:54 -0300 >Subject: [PATCH] Bug 18382: Add a test > >This is what I am expecting but I may be wrong. >--- > t/db_dependent/Hold.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Hold.t b/t/db_dependent/Hold.t >index 7eb04abd5e..1ec5d04245 100755 >--- a/t/db_dependent/Hold.t >+++ b/t/db_dependent/Hold.t >@@ -29,7 +29,7 @@ use Koha::Item; > use Koha::DateUtils; > use t::lib::TestBuilder; > >-use Test::More tests => 31; >+use Test::More tests => 33; > use Test::Warn; > > use_ok('Koha::Hold'); >@@ -92,6 +92,9 @@ $hold->suspend_hold( $dt ); > $dt->truncate( to => 'day' ); > is( $hold->suspend, 1, "Hold is suspended" ); > is( $hold->suspend_until, "$dt", "Hold is suspended with a date, truncation takes place automatically" ); >+$hold->suspend_hold; >+is( $hold->suspend, 1, "Hold is suspended" ); >+is( $hold->suspend_until, undef, "Hold is suspended without a date" ); > $hold->resume(); > is( $hold->suspend, 0, "Hold is not suspended" ); > is( $hold->suspend_until, undef, "Hold no longer has suspend_until date" ); >-- >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 18382
:
61842
|
63962
|
68281
|
68363
|
68364
|
72610
|
73149
|
73150
|
73317
| 73343 |
73420