Bugzilla – Attachment 169702 Details for
Bug 37476
RANK is a reserved word in MySQL 8.0.2+
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37476: Unit tests
Bug-37476-Unit-tests.patch (text/plain), 3.48 KB, created by
Emily Lamancusa (emlam)
on 2024-07-26 13:19:40 UTC
(
hide
)
Description:
Bug 37476: Unit tests
Filename:
MIME Type:
Creator:
Emily Lamancusa (emlam)
Created:
2024-07-26 13:19:40 UTC
Size:
3.48 KB
patch
obsolete
>From 218e6250268f7cb1ae1e3fdeea32391c6af8df25 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 25 Jul 2024 13:50:30 -0300 >Subject: [PATCH] Bug 37476: Unit tests > >Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov> >--- > t/db_dependent/Serials.t | 13 +++++++++++-- > 1 file changed, 11 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Serials.t b/t/db_dependent/Serials.t >index da919c5f79..0c9ce3dffe 100755 >--- a/t/db_dependent/Serials.t >+++ b/t/db_dependent/Serials.t >@@ -5,7 +5,7 @@ > > use Modern::Perl; > >-use C4::Serials qw( updateClaim NewSubscription GetSubscription GetSubscriptionHistoryFromSubscriptionId SearchSubscriptions ModSubscription GetExpirationDate GetSerials GetSerialInformation NewIssue AddItem2Serial DelSubscription GetFullSubscription PrepareSerialsData GetSubscriptionsFromBiblionumber ModSubscriptionHistory GetSerials2 GetLatestSerials GetNextSeq GetSeq CountSubscriptionFromBiblionumber ModSerialStatus findSerialsByStatus HasSubscriptionStrictlyExpired HasSubscriptionExpired GetLateOrMissingIssues check_routing addroutingmember GetNextDate ); >+use C4::Serials qw( getroutinglist updateClaim NewSubscription GetSubscription GetSubscriptionHistoryFromSubscriptionId SearchSubscriptions ModSubscription GetExpirationDate GetSerials GetSerialInformation NewIssue AddItem2Serial DelSubscription GetFullSubscription PrepareSerialsData GetSubscriptionsFromBiblionumber ModSubscriptionHistory GetSerials2 GetLatestSerials GetNextSeq GetSeq CountSubscriptionFromBiblionumber ModSerialStatus findSerialsByStatus HasSubscriptionStrictlyExpired HasSubscriptionExpired GetLateOrMissingIssues check_routing addroutingmember GetNextDate ); > use C4::Serials::Frequency; > use C4::Serials::Numberpattern; > use C4::Biblio qw( AddBiblio GetMarcFromKohaField ); >@@ -17,7 +17,7 @@ use Koha::Acquisition::Booksellers; > use t::lib::Mocks; > use t::lib::TestBuilder; > use Test::MockModule; >-use Test::More tests => 57; >+use Test::More tests => 63; > > BEGIN { > use_ok('C4::Serials', qw( updateClaim NewSubscription GetSubscription GetSubscriptionHistoryFromSubscriptionId SearchSubscriptions ModSubscription GetExpirationDate GetSerials GetSerialInformation NewIssue AddItem2Serial DelSubscription GetFullSubscription PrepareSerialsData GetSubscriptionsFromBiblionumber ModSubscriptionHistory GetSerials2 GetLatestSerials GetNextSeq GetSeq CountSubscriptionFromBiblionumber ModSerialStatus findSerialsByStatus HasSubscriptionStrictlyExpired HasSubscriptionExpired GetLateOrMissingIssues check_routing addroutingmember GetNextDate )); >@@ -227,6 +227,15 @@ my $patronid2 = $patron2->borrowernumber; > addroutingmember( $patronid1, $subscriptionwithroutinglistid ); > addroutingmember( $patronid2, $subscriptionwithroutinglistid ); > >+my @routinglist = getroutinglist($subscriptionwithroutinglistid); >+ >+is( scalar @routinglist, 2, 'Two members on the routing list' ); >+is( $routinglist[0]->{biblionumber}, $biblionumber, 'biblionumber is correct' ); >+is( $routinglist[1]->{biblionumber}, $biblionumber, 'biblionumber is correct' ); >+is( $routinglist[0]->{borrowernumber}, $patronid1, 'First patron added has the lowest rank' ); >+is( $routinglist[0]->{ranking}, 1, 'Rank 1 set for first subscription list member' ); >+is( $routinglist[1]->{ranking}, 2, 'Next rank value set for the second added subscription list member' ); >+ > # Perform SearchSubscriptions > my $fake_subscription = GetSubscription($subscriptionwithroutinglistid); > >-- >2.34.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 37476
:
169609
|
169610
|
169702
|
169703
|
169722
|
169723