Bugzilla – Attachment 132981 Details for
Bug 30204
Add subtitle to serial subscription search
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30204: Add unit test
Bug-30204-Add-unit-test.patch (text/plain), 1.64 KB, created by
Lucas Gass (lukeg)
on 2022-04-05 17:01:35 UTC
(
hide
)
Description:
Bug 30204: Add unit test
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2022-04-05 17:01:35 UTC
Size:
1.64 KB
patch
obsolete
>From 97e756ea08e2175fb8d83ae40848b75613336a9b Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Tue, 5 Apr 2022 12:54:37 -0400 >Subject: [PATCH] Bug 30204: Add unit test > >Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> >--- > 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.20.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 30204
:
131198
|
131560
|
132907
|
132979
|
132981
|
133201
|
133202