Bugzilla – Attachment 90386 Details for
Bug 23064
Cannot edit subscription with strict SQL modes turned on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23064: Add tests
Bug-23064-Add-tests.patch (text/plain), 1.44 KB, created by
Jonathan Druart
on 2019-06-06 17:41:06 UTC
(
hide
)
Description:
Bug 23064: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-06-06 17:41:06 UTC
Size:
1.44 KB
patch
obsolete
>From 9eb78fd1cefd9cf5b343a90c3efbfe5171b25cfb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 6 Jun 2019 11:30:15 -0500 >Subject: [PATCH] Bug 23064: Add tests > >This param list is scary! >--- > t/db_dependent/Serials.t | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t >index cfad08a9b9..c6b8e06778 100755 >--- a/t/db_dependent/Serials.t >+++ b/t/db_dependent/Serials.t >@@ -18,7 +18,7 @@ use Koha::DateUtils; > use Koha::Acquisition::Booksellers; > use t::lib::Mocks; > use t::lib::TestBuilder; >-use Test::More tests => 48; >+use Test::More tests => 49; > > BEGIN { > use_ok('C4::Serials'); >@@ -362,3 +362,18 @@ subtest "NewSubscription" => sub { > ); > ok($subscriptionid, "Sending empty string instead of undef to reflect use of the interface"); > }; >+ >+subtest "ModSuscription" => sub { >+ plan tests => 1; >+ my $subscription = $builder->build_object({ class => 'Koha::Subscriptions' }); >+ my $modified = ModSubscription( >+ "", "", "", "", $budget_id, $biblionumber, >+ '2013-01-01', $frequency_id, "", "", "", >+ "", "", "", "", "", "", >+ 1, $notes,"", '2013-01-01', "", $pattern_id, >+ "", "", 0, $internalnotes, 0, >+ "", "", 0, "", '2013-12-31', $subscription->subscriptionid, >+ 0 >+ ); >+ is($modified, 1); >+}; >-- >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 23064
:
90386
|
90387
|
95611
|
97753
|
97754
|
99359