Bugzilla – Attachment 31605 Details for
Bug 12892
Holds Waiting: not showing from check out screen
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12892 - Unit Tests
Bug-12892---Unit-Tests.patch (text/plain), 1.51 KB, created by
Kyle M Hall (khall)
on 2014-09-15 13:01:34 UTC
(
hide
)
Description:
Bug 12892 - Unit Tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-09-15 13:01:34 UTC
Size:
1.51 KB
patch
obsolete
>From 48e584e5b58fcb391fc6b3429770bb0f3402cfe2 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 15 Sep 2014 08:06:44 -0400 >Subject: [PATCH] Bug 12892 - Unit Tests > >--- > t/db_dependent/Reserves.t | 10 +++++++++- > 1 files changed, 9 insertions(+), 1 deletions(-) > >diff --git a/t/db_dependent/Reserves.t b/t/db_dependent/Reserves.t >index 0698534..66ea37f 100755 >--- a/t/db_dependent/Reserves.t >+++ b/t/db_dependent/Reserves.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > >-use Test::More tests => 35; >+use Test::More tests => 38; > > use MARC::Record; > use DateTime::Duration; >@@ -12,6 +12,8 @@ use C4::Biblio; > use C4::Items; > use C4::Members; > use C4::Circulation; >+use Koha::Database; >+ > use t::lib::Mocks; > > use Koha::DateUtils; >@@ -225,6 +227,12 @@ is($reserves[0]{priority}, 0, 'Item is correctly waiting'); > is($reserves[1]{priority}, 1, 'Item is correctly priority 1'); > is($reserves[2]{priority}, 2, 'Item is correctly priority 2'); > >+my $reserve_rs = Koha::Database->new()->schema()->resultset('Reserve'); >+my $waiting = $reserve_rs->GetWaiting({ borrowernumber => $requesters{'RPL'} }); >+ok( $waiting->count() == 1, 'GetWaiting got only the waiting reserve' ); >+my $w = $waiting->first(); >+ok( $w->found() eq 'W', 'GetWaiting got the waiting reserve'); >+ok( $w->get_column('borrowernumber') eq $requesters{'RPL'}, 'GetWaiting got the reserve for the correct borrower' ); > > $dbh->do("DELETE FROM reserves WHERE biblionumber=?",undef,($bibnum2)); > AddReserve('RPL', $requesters{'RPL'}, $bibnum2, >-- >1.7.2.5
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 12892
:
31471
|
31472
|
31581
|
31600
|
31601
|
31603
|
31604
|
31605
|
31607
|
31608
|
31670
|
31671
|
31672
|
31962
|
31963
|
32010
|
32017
|
32044
|
32057
|
32066
|
32069
|
33222
|
33225
|
33236
|
33275