Bugzilla – Attachment 84853 Details for
Bug 21738
[ILS-DI] Error placing a hold on a title without item
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21738: unit tests for HoldTitle
Bug-21738-unit-tests-for-HoldTitle.patch (text/plain), 1.27 KB, created by
Alex Arnaud
on 2019-02-07 16:22:55 UTC
(
hide
)
Description:
Bug 21738: unit tests for HoldTitle
Filename:
MIME Type:
Creator:
Alex Arnaud
Created:
2019-02-07 16:22:55 UTC
Size:
1.27 KB
patch
obsolete
>From c93f09fdc40d49c09f8bd873326bf07a4d9d21ba Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Thu, 7 Feb 2019 17:22:17 +0100 >Subject: [PATCH] Bug 21738: unit tests for HoldTitle > >--- > t/db_dependent/ILSDI_Services.t | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/ILSDI_Services.t b/t/db_dependent/ILSDI_Services.t >index 049a8f8..4ec7f81 100644 >--- a/t/db_dependent/ILSDI_Services.t >+++ b/t/db_dependent/ILSDI_Services.t >@@ -299,7 +299,7 @@ subtest 'LookupPatron test' => sub { > > subtest 'Holds test' => sub { > >- plan tests => 4; >+ plan tests => 5; > > $schema->storage->txn_begin; > >@@ -350,6 +350,17 @@ subtest 'Holds test' => sub { > $reply = C4::ILSDI::Services::HoldTitle( $query ); > is( $reply->{code}, 'itemAlreadyOnHold', "Item already on hold" ); > >+ my $biblio_with_no_item = $builder->build({ >+ source => 'Biblio', >+ }); >+ >+ $query = new CGI; >+ $query->param( 'patron_id', $patron->{borrowernumber}); >+ $query->param( 'bib_id', $biblio_with_no_item->{biblionumber}); >+ >+ $reply = C4::ILSDI::Services::HoldTitle( $query ); >+ is( $reply->{code}, 'NoItems', 'Biblio has no item' ); >+ > my $biblio2 = $builder->build({ > source => 'Biblio', > }); >-- >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 21738
:
81754
|
82251
|
83637
|
83752
|
83753
|
84673
|
84674
| 84853