From e95dd5dc650890402a4624d50135c0de07c201f9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 5 Apr 2022 12:54:37 -0400 Subject: [PATCH] Bug 30204: Add unit test Signed-off-by: Lucas Gass Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Fridolin Somers --- t/db_dependent/Koha/Acquisition/Booksellers.t | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Acquisition/Booksellers.t b/t/db_dependent/Koha/Acquisition/Booksellers.t index e7b8fed400..abd4e2ff45 100755 --- a/t/db_dependent/Koha/Acquisition/Booksellers.t +++ b/t/db_dependent/Koha/Acquisition/Booksellers.t @@ -58,7 +58,7 @@ subtest '->baskets() tests' => sub { subtest '->subscriptions() tests' => sub { - plan tests => 5; + plan tests => 6; $schema->storage->txn_begin(); @@ -91,7 +91,7 @@ subtest '->subscriptions() tests' => sub { ); my $bib = MARC::Record->new(); $bib->append_fields( - MARC::Field->new( '245', ' ', ' ', a => 'Journal of ethnology' ), + MARC::Field->new( '245', ' ', ' ', a => 'Journal of ethnology', b => 'A subtitle' ), MARC::Field->new( '500', ' ', ' ', a => 'bib notes' ), ); my ( $biblionumber, $biblioitemnumber ) = AddBiblio( $bib, '' ); @@ -114,6 +114,10 @@ subtest '->subscriptions() tests' => sub { 'subscription notes', 'subscription search results include public notes (bug 10689)' ); + is( $subscriptions[0]->{subtitle}, + 'A subtitle', + 'subscription search results include subtitle (bug 30204)' + ); my $id_subscription2 = NewSubscription( undef, 'BRANCH2', $vendor->id, undef, -- 2.39.5