Bugzilla – Attachment 146002 Details for
Bug 25508
Confusing renewal message when paying accruing fine with RenewAccruingItemWhenPaid turned off
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25503: Add failing test for _get_biblio_for_export
Bug-25503-Add-failing-test-for-getbiblioforexport.patch (text/plain), 1.56 KB, created by
Martin Renvoize (ashimema)
on 2023-02-02 14:14:26 UTC
(
hide
)
Description:
Bug 25503: Add failing test for _get_biblio_for_export
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-02-02 14:14:26 UTC
Size:
1.56 KB
patch
obsolete
>From ad27702f671d0e2de95847bbc75ed8f45ab0c723 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 4 Nov 2022 09:53:25 +0100 >Subject: [PATCH] Bug 25503: Add failing test for _get_biblio_for_export > >Signed-off-by: Marie-Luce <marie-luce.laflamme@inlibro.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >https://bugs.koha-community.org/show_bug.cgi?id=25508 >--- > t/db_dependent/Exporter/Record.t | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Exporter/Record.t b/t/db_dependent/Exporter/Record.t >index 93b12fd87dd..68fa733f7dc 100755 >--- a/t/db_dependent/Exporter/Record.t >+++ b/t/db_dependent/Exporter/Record.t >@@ -222,7 +222,7 @@ subtest 'export without record_type' => sub { > }; > > subtest '_get_biblio_for_export' => sub { >- plan tests => 4; >+ plan tests => 5; > > my $biblio = $builder->build_sample_biblio( > { >@@ -281,6 +281,16 @@ subtest '_get_biblio_for_export' => sub { > @items = $record->field($item_field_tag); > is( scalar @items, 0, "We should not have any items if we don't request items and pass a branch"); > >+ $record = Koha::Exporter::Record::_get_biblio_for_export( >+ { >+ biblionumber => $biblionumber, >+ export_items => 1, >+ itemnumbers => [$item_branch_a->itemnumber], >+ } >+ ); >+ @items = $record->field($item_field_tag); >+ is( scalar @items, 1, "We should have only items requested if we pass itemnumbers"); >+ > }; > > subtest '_get_record_for_export MARC field conditions' => sub { >-- >2.30.2
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 25508
:
118765
|
118776
|
118777
|
118778
|
119191
|
119192
|
119213
|
119214
|
119639
|
119640
|
119641
|
119702
|
146001
|
146002
|
146003
|
146004