Bug 33952: Add tests
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
2d27d02a4d
commit
3c52e63f78
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use Test::More tests => 24;
|
||||
use Test::More tests => 25;
|
||||
use Test::Exception;
|
||||
use Test::Warn;
|
||||
|
||||
|
|
@ -1126,6 +1126,18 @@ subtest 'item_groups() tests' => sub {
|
|||
$schema->storage->txn_rollback;
|
||||
};
|
||||
|
||||
subtest 'normalized_isbn' => sub {
|
||||
plan tests => 1;
|
||||
|
||||
# We will move the tests from GetNormalizedISBN here when it will get replaced
|
||||
my $biblio = $builder->build_sample_biblio();
|
||||
$biblio->biblioitem->set( { isbn => '9781250067128 | 125006712X' } )->store;
|
||||
is(
|
||||
$biblio->normalized_isbn, C4::Koha::GetNormalizedISBN( $biblio->biblioitem->isbn ),
|
||||
'normalized_isbn is a wrapper around C4::Koha::GetNormalizedISBN'
|
||||
);
|
||||
};
|
||||
|
||||
sub component_record1 {
|
||||
my $marc = MARC::Record->new;
|
||||
$marc->append_fields(
|
||||
|
|
|
|||
Loading…
Reference in New Issue