Bugzilla – Attachment 67562 Details for
Bug 19350
Holds without link in 773 trigger SQL::Abstract::puke
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19350: Add tests
Bug-19350-Add-tests.patch (text/plain), 1.32 KB, created by
Jonathan Druart
on 2017-10-03 15:17:45 UTC
(
hide
)
Description:
Bug 19350: Add tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-10-03 15:17:45 UTC
Size:
1.32 KB
patch
obsolete
>From a2cc68e8b7a33dd7983c2125e32ba269777b8ace Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 3 Oct 2017 12:15:30 -0300 >Subject: [PATCH] Bug 19350: Add tests > >--- > t/db_dependent/Items.t | 17 ++++++++++++++++- > 1 file changed, 16 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Items.t b/t/db_dependent/Items.t >index 39f76d09ae..f257f785ae 100755 >--- a/t/db_dependent/Items.t >+++ b/t/db_dependent/Items.t >@@ -26,7 +26,7 @@ use Koha::Library; > use t::lib::Mocks; > use t::lib::TestBuilder; > >-use Test::More tests => 11; >+use Test::More tests => 12; > > use Test::Warn; > >@@ -782,6 +782,21 @@ subtest '_mod_item_dates' => sub { > 'yetanotherdatetime is ok' ); > }; > >+subtest 'get_hostitemnumbers_of' => sub { >+ plan tests => 1; >+ >+ my $bib = MARC::Record->new(); >+ $bib->append_fields( >+ MARC::Field->new('100', ' ', ' ', a => 'Moffat, Steven'), >+ MARC::Field->new('245', ' ', ' ', a => 'Silence in the library'), >+ MARC::Field->new('773', ' ', ' ', b => 'b without 0 or 9'), >+ ); >+ my ($biblionumber, $bibitemnum) = AddBiblio($bib, ''); >+ >+ my @itemnumbers = C4::Items::get_hostitemnumbers_of( $biblionumber ); >+ is( @itemnumbers, 0, ); >+}; >+ > # Helper method to set up a Biblio. > sub get_biblio { > my ( $frameworkcode ) = @_; >-- >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 19350
:
67239
|
67311
| 67562