Bugzilla – Attachment 46448 Details for
Bug 15209
C4::Koha routines expecting a MARC::Record object should check it is defined
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15209: Add tests
Bug-15209-Add-tests.patch (text/plain), 1.55 KB, created by
Kyle M Hall (khall)
on 2016-01-08 17:34:17 UTC
(
hide
)
Description:
Bug 15209: Add tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2016-01-08 17:34:17 UTC
Size:
1.55 KB
patch
obsolete
>From dc3479a111c038d0eeb3c64fb362fa0a0a57e849 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 28 Dec 2015 15:46:59 +0000 >Subject: [PATCH] Bug 15209: Add tests > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/Koha.t | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/Koha.t b/t/Koha.t >index 3593368..364020d 100755 >--- a/t/Koha.t >+++ b/t/Koha.t >@@ -25,7 +25,7 @@ use Module::Load::Conditional qw/check_install/; > > BEGIN { > if ( check_install( module => 'Test::DBIx::Class' ) ) { >- plan tests => 30; >+ plan tests => 34; > } else { > plan skip_all => "Need Test::DBIx::Class" > } >@@ -119,4 +119,9 @@ is( C4::Koha::GetNormalizedISBN('9781250075345 (hardcover) | 1250075343 (hardcov > is( C4::Koha::GetNormalizedISBN('9781250067128 | 125006712X'), '125006712X', 'Test GetNormalizedISBN' ); > is( C4::Koha::GetNormalizedISBN('9780373211463 | 0373211465'), '0373211465', 'Test GetNormalizedISBN' ); > >+is( C4::Koha::GetNormalizedUPC(), undef, 'GetNormalizedUPC should return undef if no record is passed' ); >+is( C4::Koha::GetNormalizedISBN(), undef, 'GetNormalizedISBN should return undef if no record and no isbn are passed' ); >+is( C4::Koha::GetNormalizedEAN(), undef, 'GetNormalizedEAN should return undef if no record and no isbn are passed' ); >+is( C4::Koha::GetNormalizedOCLCNumber(), undef, 'GetNormalizedOCLCNumber should return undef if no record and no isbn are passed' ); >+ > 1; >-- >2.1.4
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 15209
:
44963
|
46007
|
46008
|
46009
|
46447
| 46448 |
46449