Bugzilla – Attachment 55467 Details for
Bug 7677
Subscriptions: Ability to define default itemtype and automatically change itemtype of older issues on receive of next issue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 7677: UT: add unit tests for GetPreviousSerialid
PASSED-QA-Bug-7677-UT-add-unit-tests-for-GetPrevio.patch (text/plain), 1.49 KB, created by
Katrin Fischer
on 2016-09-10 11:20:27 UTC
(
hide
)
Description:
[PASSED QA] Bug 7677: UT: add unit tests for GetPreviousSerialid
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2016-09-10 11:20:27 UTC
Size:
1.49 KB
patch
obsolete
>From 77d36e9c57e45432873fce198cb958f707999517 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 21 Aug 2013 14:38:34 +0200 >Subject: [PATCH] [PASSED QA] Bug 7677: UT: add unit tests for > GetPreviousSerialid > >Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com> > >http://bugs.koha-community.org/show_bug.cgi?id=7767 > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > t/db_dependent/Serials_2.t | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > >diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t >index a73ef1f..52662b2 100644 >--- a/t/db_dependent/Serials_2.t >+++ b/t/db_dependent/Serials_2.t >@@ -246,6 +246,18 @@ is( C4::Serials::can_show_subscription($subscription_from_another_branch), 1, > > $schema->storage->txn_rollback; > >+# GetPreviousSerialid >+my $serialid1 = NewIssue( 1, $subscriptionid, $biblionumber, 2 ); >+my $serialid2 = NewIssue( 2, $subscriptionid, $biblionumber, 2 ); >+my $serialid3 = NewIssue( 3, $subscriptionid, $biblionumber, 2 ); >+ >+is( GetPreviousSerialid( $subscriptionid ), $serialid2, "get previous serialid without parameter"); >+is( GetPreviousSerialid( $subscriptionid, 1 ), $serialid2, "get previous serialid with 1" ); >+is( GetPreviousSerialid( $subscriptionid, 2 ), $serialid1, "get previous serialid with 2" ); >+is( GetPreviousSerialid( $subscriptionid, 3 ), undef, "get previous serialid with 3, does not exist" ); >+ >+$dbh->rollback; >+ > # C4::Context->userenv > sub Mock_userenv { > return $userenv; >-- >2.7.4
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 7677
:
16339
|
16425
|
16456
|
20537
|
20538
|
24099
|
24635
|
25980
|
25981
|
25983
|
27774
|
28950
|
28951
|
28952
|
28953
|
29570
|
29571
|
29572
|
34220
|
34221
|
34222
|
34223
|
34665
|
36389
|
36446
|
36448
|
36449
|
36450
|
36451
|
36452
|
36453
|
36679
|
36680
|
36681
|
36682
|
36683
|
42923
|
42924
|
45938
|
45939
|
45940
|
45941
|
45942
|
45943
|
46216
|
47475
|
52010
|
54876
|
55000
|
55323
|
55466
| 55467 |
55468
|
55469
|
55470
|
55471
|
55472
|
55473
|
55474
|
55475