Bugzilla – Attachment 133201 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.70 KB, created by
Victor Grousset/tuxayo
on 2022-04-11 22:51:57 UTC
(
hide
)
Description:
Bug 30204: Add unit test
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2022-04-11 22:51:57 UTC
Size:
1.70 KB
patch
obsolete
>From 866ea357d8b31058fa1e8e145188d4d1e0eef49e 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> >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > 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.35.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