Bugzilla – Attachment 76930 Details for
Bug 21023
Remove warning in t/db_dependent/Circulation/Chargelostitem.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21023: Remove warning in t/db_dependent/Circulation/Chargelostitem.t
Bug-21023-Remove-warning-in-tdbdependentCirculatio.patch (text/plain), 1.97 KB, created by
Marcel de Rooy
on 2018-07-13 06:13:17 UTC
(
hide
)
Description:
Bug 21023: Remove warning in t/db_dependent/Circulation/Chargelostitem.t
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-07-13 06:13:17 UTC
Size:
1.97 KB
patch
obsolete
>From 0ca56b3a3d0710dcf41012aed752a25c32723367 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 29 Jun 2018 11:52:16 -0300 >Subject: [PATCH] Bug 21023: Remove warning in > t/db_dependent/Circulation/Chargelostitem.t >Content-Type: text/plain; charset=utf-8 > >To test: >- Run: > $ kshell > k$ prove t/db_dependent/Circulation/Chargelostitem.t >=> FAIL: Warning is displayed >- Apply this patch >- Run: > k$ prove t/db_dependent/Circulation/Chargelostitem.t >=> SUCCESS: Tests pass! No warning! >- Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/Circulation/Chargelostitem.t | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Circulation/Chargelostitem.t b/t/db_dependent/Circulation/Chargelostitem.t >index dfcee30..f9b5a3b 100644 >--- a/t/db_dependent/Circulation/Chargelostitem.t >+++ b/t/db_dependent/Circulation/Chargelostitem.t >@@ -75,8 +75,8 @@ is( int($accountline->amount), int($itemtype->{processfee}), "The accountline am > is( $accountline->itemnumber, $itemnumber1, "The accountline itemnumber should the linked with barcode '0101'" ); > is( $accountline->note, C4::Context->preference("ProcessingFeeNote"), "The accountline description should be 'test'" ); > >-my $lost_ao = Koha::Account::Offsets->single( { type => 'Lost Item' } ); >-ok( $lost_ao, 'Account offset of type "Lost Item" created' ); >+my $lost_ao = Koha::Account::Offsets->search( { type => 'Lost Item' } ); >+is( $lost_ao->count, 1, 'Account offset of type "Lost Item" created' ); > >-my $processing_fee_ao = Koha::Account::Offsets->single( { type => 'Processing Fee' } ); >-ok( $processing_fee_ao, 'Account offset of type "Processing Fee" created' ); >+my $processing_fee_ao = Koha::Account::Offsets->search( { type => 'Processing Fee' } ); >+is( $processing_fee_ao->count, 1, 'Account offset of type "Processing Fee" created' ); >-- >2.1.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 21023
:
76576
|
76759
| 76930