From 9eb78fd1cefd9cf5b343a90c3efbfe5171b25cfb Mon Sep 17 00:00:00 2001 From: Jonathan Druart 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