Bugzilla – Attachment 42157 Details for
Bug 12768
Replacement cost and processing fee management
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12768: qa follow-up
Bug-12768-qa-follow-up.patch (text/plain), 1.88 KB, created by
Jonathan Druart
on 2015-09-01 14:12:30 UTC
(
hide
)
Description:
Bug 12768: qa follow-up
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-09-01 14:12:30 UTC
Size:
1.88 KB
patch
obsolete
>From 2601da14237b1502644d94d91b6794e3151fcb57 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 1 Sep 2015 14:19:34 +0100 >Subject: [PATCH] Bug 12768: qa follow-up > >--- > t/db_dependent/Circulation/Chargelostitem.t | 9 ++------- > 1 file changed, 2 insertions(+), 7 deletions(-) > >diff --git a/t/db_dependent/Circulation/Chargelostitem.t b/t/db_dependent/Circulation/Chargelostitem.t >index 06770c9..b19386a 100644 >--- a/t/db_dependent/Circulation/Chargelostitem.t >+++ b/t/db_dependent/Circulation/Chargelostitem.t >@@ -1,10 +1,5 @@ > #!/usr/bin/perl >-# >-# This Koha test module is a stub! >-# Add more tests here!!! > >-use strict; >-use warnings; > use Modern::Perl; > > use Test::MockModule; >@@ -56,7 +51,7 @@ if (@categories) { > $categorycode = $categories[0]->{categorycode} > } else { > $categorycode = 'C'; >- C4::Context->dbh->do( >+ $dbh->do( > "INSERT INTO categories(categorycode) VALUES(?)", undef, $categorycode); > $category_created = 1; > } >@@ -83,7 +78,7 @@ my @accountline = C4::Accounts::getcharges($borrowernumber); > is( scalar(@accountline), 1, 'accountline should have 1 row' ); > is( int($accountline[0]->{amount}), $processfee, "The accountline amount should be precessfee value " ); > is( $accountline[0]->{accounttype}, 'PF', "The accountline accounttype should be PF " ); >-is( $accountline[0]->{borrowernumber}, $borrowernumber, "The accountline borrowernumber should be the exemple borrownumber" ); >+is( $accountline[0]->{borrowernumber}, $borrowernumber, "The accountline borrowernumber should be the example borrowernumber" ); > my $itemnumber = C4::Items::GetItemnumberFromBarcode('0101'); > is( $accountline[0]->{itemnumber}, $itemnumber, "The accountline itemnumber should the linked with barcode '0101'" ); > is( $accountline[0]->{description}, 'test ' . $issue->{itemnumber}, "The accountline description should be 'test'" ); >-- >2.1.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 12768
:
34333
|
34334
|
36350
|
36505
|
36506
|
36552
|
36553
|
36554
|
36555
|
38365
|
38367
|
38368
|
38375
|
39298
|
39299
|
39300
|
39999
|
40000
|
40001
|
40002
|
42157
|
42158
|
43181
|
43546
|
64775
|
64776
|
66760
|
66761
|
67875
|
67876
|
67877
|
67878
|
67891
|
67892
|
67893
|
67894
|
67895
|
67896
|
67897
|
68035
|
68036
|
68037
|
68038
|
68039
|
68040
|
68041
|
68042
|
68076
|
68264
|
68265
|
68266
|
68267
|
68268
|
68269
|
68270
|
68271
|
68272
|
68273
|
68274
|
68332
|
68415
|
68416
|
68417
|
68426
|
68427