From 6f5a754c03e8a3f89afe610130ca22ce990ed8a9 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 --- 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