Bugzilla – Attachment 116173 Details for
Bug 25552
Add missing Claims Returned option to MarkLostItemsAsReturned
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25552: Simplify tests using build_sample_item
Bug-25552-Simplify-tests-using-buildsampleitem.patch (text/plain), 1.39 KB, created by
Jonathan Druart
on 2021-02-01 16:25:14 UTC
(
hide
)
Description:
Bug 25552: Simplify tests using build_sample_item
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-02-01 16:25:14 UTC
Size:
1.39 KB
patch
obsolete
>From aa7dbf6f42b6121cd804832ae075cc1803e09c19 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 1 Feb 2021 17:24:37 +0100 >Subject: [PATCH] Bug 25552: Simplify tests using build_sample_item > >--- > t/db_dependent/Circulation/ReturnClaims.t | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) > >diff --git a/t/db_dependent/Circulation/ReturnClaims.t b/t/db_dependent/Circulation/ReturnClaims.t >index 7d73b170ce..87206aeb63 100755 >--- a/t/db_dependent/Circulation/ReturnClaims.t >+++ b/t/db_dependent/Circulation/ReturnClaims.t >@@ -119,18 +119,7 @@ subtest 'Test Koha::Checkout::claim_returned, mark as returned' => sub { > > t::lib::Mocks::mock_preference( 'ClaimReturnedLostValue', 1 ); > t::lib::Mocks::mock_preference( 'MarkLostItemsAsReturned', q{claim_returned} ); >- my $biblio = $builder->build_object( { class => 'Koha::Biblios' } ); >- my $item = $builder->build_object( >- { >- class => 'Koha::Items', >- value => { >- biblionumber => $biblio->biblionumber, >- notforloan => 0, >- itemlost => 0, >- withdrawn => 0, >- } >- } >- ); >+ my $item = $builder->build_sample_item; > my $patron = $builder->build_object( { class => 'Koha::Patrons' } ); > my $checkout = AddIssue( $patron->unblessed, $item->barcode ); > >-- >2.20.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 25552
:
105146
|
105389
|
105558
|
105559
|
105643
|
113889
|
113892
|
113893
|
113898
|
115685
|
115686
|
115687
|
115688
|
115689
| 116173