Bugzilla – Attachment 21289 Details for
Bug 8435
new permissions on subscriptions "superserials"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8435: The unit tests should create the biblio
Bug-8435-The-unit-tests-should-create-the-biblio.patch (text/plain), 1.86 KB, created by
Chris Cormack
on 2013-09-20 19:55:29 UTC
(
hide
)
Description:
Bug 8435: The unit tests should create the biblio
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-09-20 19:55:29 UTC
Size:
1.86 KB
patch
obsolete
>From 3a22efd99444201a11c601a77a1526105f15a9b1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 21 Aug 2013 14:23:24 +0200 >Subject: [PATCH] Bug 8435: The unit tests should create the biblio > >Previous version does not create the biblio. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > t/db_dependent/Serials_2.t | 13 ++++++++++--- > 1 file changed, 10 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t >index 83bcbf8..72d71d9 100644 >--- a/t/db_dependent/Serials_2.t >+++ b/t/db_dependent/Serials_2.t >@@ -3,6 +3,8 @@ use Modern::Perl; > > use Test::More tests => 4; > >+use MARC::Record; >+use C4::Biblio qw( AddBiblio ); > use_ok('C4::Serials'); > use_ok('C4::Budgets'); > >@@ -13,11 +15,16 @@ $dbh->{RaiseError} = 1; > my $supplierlist=eval{GetSuppliersWithLateIssues()}; > ok(length($@)==0,"No SQL problem in GetSuppliersWithLateIssues"); > >-my $biblionumber = 1; >+my $record = MARC::Record->new(); >+$record->append_fields( >+ MARC::Field->new( '952', '0', '0', a => 'CPL', b => 'CPL' ) >+); >+my ( $biblionumber, $biblioitemnumber ) = C4::Biblio::AddBiblio($record, ''); >+ > my $budgetid; > my $bpid = AddBudgetPeriod({ > budget_period_startdate => '01-01-2015', >- budget_period_enddate => '31-12-2015', >+ budget_period_enddate => '12-31-2015', > budget_description => "budget desc" > }); > >@@ -37,7 +44,7 @@ my $subscriptionid = NewSubscription( > undef, undef, undef, undef, undef, undef, undef, undef, > undef, undef, undef, undef, undef, undef, undef, 1, > "notes", undef, undef, undef, undef, undef, undef, 0, >- "intnotes", 0, undef, undef, 0, undef, '31-12-2013', >+ "intnotes", 0, undef, undef, 0, undef, '12-31-2013', > ); > die unless $subscriptionid; > >-- >1.8.4.rc2
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 8435
:
10821
|
11377
|
11411
|
11892
|
13396
|
15673
|
16404
|
16462
|
16740
|
16750
|
16751
|
16798
|
16799
|
16801
|
16802
|
16803
|
16943
|
16944
|
19260
|
19261
|
19266
|
19268
|
20536
|
21286
|
21287
|
21288
|
21289
|
22624
|
22625
|
22626
|
22627
|
22628