From 284aa1496e566b1784dbc9e95e368fbd543944fc Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jun 2023 12:50:59 +0200 Subject: [PATCH] Bug 33955: Add a test Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- 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 4bc53195ec..6895ea5bfa 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; @@ -1138,6 +1138,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.39.2