Bugzilla – Attachment 73198 Details for
Bug 19943
Koha::Biblio - Remove GetBiblioItemData
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19943: Fix dateexpiry.t - create the biblioitem entry
Bug-19943-Fix-dateexpiryt---create-the-biblioitem-.patch (text/plain), 2.14 KB, created by
Jonathan Druart
on 2018-03-23 16:19:13 UTC
(
hide
)
Description:
Bug 19943: Fix dateexpiry.t - create the biblioitem entry
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-23 16:19:13 UTC
Size:
2.14 KB
patch
obsolete
>From 595dce69426b31c1dc726265ba5a90710f388a3b Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 23 Mar 2018 13:18:59 -0300 >Subject: [PATCH] Bug 19943: Fix dateexpiry.t - create the biblioitem entry > >--- > t/db_dependent/Circulation/dateexpiry.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Circulation/dateexpiry.t b/t/db_dependent/Circulation/dateexpiry.t >index e8ea535df3..c5b3db5a50 100644 >--- a/t/db_dependent/Circulation/dateexpiry.t >+++ b/t/db_dependent/Circulation/dateexpiry.t >@@ -46,7 +46,7 @@ subtest 'Tests for CalcDateDue related to dateexpiry' => sub { > }; > > sub can_book_be_issued { >- my $item = $builder->build( { source => 'Item' } ); >+ my $item = $builder->build( { source => 'Item', value => { biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber} } } ); > my $patron = $builder->build_object( > { class => 'Koha::Patrons', > value => { >@@ -61,7 +61,7 @@ sub can_book_be_issued { > cmp_ok $duration, '<', 1, "CanBookBeIssued should not be take more than 1s if the patron is expired"; > is( not( exists $issuingimpossible->{EXPIRED} ), 1, 'The patron should not be considered as expired if dateexpiry is 9999-*' ); > >- $item = $builder->build( { source => 'Item' } ); >+ $item = $builder->build( { source => 'Item', value => { biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber} } } ); > $patron = $builder->build_object( > { class => 'Koha::Patrons', > value => { >@@ -74,7 +74,7 @@ sub can_book_be_issued { > is( not( exists $issuingimpossible->{EXPIRED} ), 1, 'The patron should not be considered as expired if dateexpiry is not set' ); > > my $tomorrow = dt_from_string->add_duration( DateTime::Duration->new( days => 1 ) ); >- $item = $builder->build( { source => 'Item' } ); >+ $item = $builder->build( { source => 'Item', value => { biblionumber => $builder->build( { source => 'Biblioitem' } )->{biblionumber} } } ); > $patron = $builder->build_object( > { class => 'Koha::Patrons', > value => { >-- >2.11.0
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 19943
:
70384
|
70385
|
70386
|
72568
|
72569
|
72570
|
72593
|
72594
|
72595
|
72596
|
73189
|
73190
|
73191
|
73192
|
73194
| 73198 |
73199
|
73200