Bugzilla – Attachment 152152 Details for
Bug 33955
Add Koha::Biblio->normalized_upc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33955: Add a test
Bug-33955-Add-a-test.patch (text/plain), 1.24 KB, created by
Jonathan Druart
on 2023-06-08 10:56:52 UTC
(
hide
)
Description:
Bug 33955: Add a test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2023-06-08 10:56:52 UTC
Size:
1.24 KB
patch
obsolete
>From 6f5a754c03e8a3f89afe610130ca22ce990ed8a9 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 8 Jun 2023 12:50:59 +0200 >Subject: [PATCH] Bug 33955: Add a test > >--- > t/db_dependent/Koha/Biblio.t | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t >index 796698446bb..ff039e6d38e 100755 >--- a/t/db_dependent/Koha/Biblio.t >+++ b/t/db_dependent/Koha/Biblio.t >@@ -17,7 +17,7 @@ > > use Modern::Perl; > >-use Test::More tests => 27; >+use Test::More tests => 28; > use Test::Exception; > use Test::Warn; > >@@ -1126,6 +1126,18 @@ subtest 'normalized_isbn' => sub { > ); > }; > >+subtest 'normalized_upc' => sub { >+ plan tests => 1; >+ >+ # We will move the tests from GetNormalizedUPC here when it will get replaced >+ # Note that only a single test exist and it's not really meaningful... >+ my $biblio = $builder->build_sample_biblio(); >+ is( >+ $biblio->normalized_upc, C4::Koha::GetNormalizedUPC( $biblio->metadata->record ), >+ 'normalized_upc is a wrapper around C4::Koha::GetNormalizedUPC' >+ ); >+}; >+ > subtest 'ratings' => sub { > plan tests => 1; > # See t/db_dependent/Koha/Ratings.t >-- >2.25.1
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 33955
:
152152
|
152153
|
155542
|
155543
|
155699
|
155700
|
155819