Bugzilla – Attachment 19306 Details for
Bug 10275
UT: OrderFromSubscription.t needs to create its own data
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10275: Use a transaction for OrderFromSubscription.t
Bug-10275-Use-a-transaction-for-OrderFromSubscript.patch (text/plain), 1.49 KB, created by
Jonathan Druart
on 2013-07-01 08:11:28 UTC
(
hide
)
Description:
Bug 10275: Use a transaction for OrderFromSubscription.t
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2013-07-01 08:11:28 UTC
Size:
1.49 KB
patch
obsolete
>From 2a74082bbf01d7d166cba74b48ea58e3df9a65a0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 1 Jul 2013 10:11:05 +0200 >Subject: [PATCH] Bug 10275: Use a transaction for OrderFromSubscription.t > >--- > t/db_dependent/Acquisition/OrderFromSubscription.t | 17 ++++++++--------- > 1 file changed, 8 insertions(+), 9 deletions(-) > >diff --git a/t/db_dependent/Acquisition/OrderFromSubscription.t b/t/db_dependent/Acquisition/OrderFromSubscription.t >index aa9a4a3..f767c56 100644 >--- a/t/db_dependent/Acquisition/OrderFromSubscription.t >+++ b/t/db_dependent/Acquisition/OrderFromSubscription.t >@@ -7,6 +7,12 @@ use_ok('C4::Acquisition'); > use_ok('C4::Biblio'); > use_ok('C4::Budgets'); > use_ok('C4::Serials'); >+ >+# Start transaction >+my $dbh = C4::Context->dbh; >+$dbh->{AutoCommit} = 0; >+$dbh->{RaiseError} = 1; >+ > my $supplierlist=eval{GetSuppliersWithLateIssues()}; > ok(length($@)==0,"No SQL problem in GetSuppliersWithLateIssues"); > >@@ -87,12 +93,5 @@ ok( $order->{ecost} == $cost, "test cost for the last order received"); > $order = GetLastOrderNotReceivedFromSubscriptionid( $subscription->{subscriptionid} ); > is ( $order, undef, "test no not received order for a received order"); > >-# cleaning >-END { >- DelSubscription( $subscription->{subscriptionid} ); >- DelOrder( $subscription->{biblionumber}, $ordernumber ); >- DelBudgetPeriod($bpid); >- DelBudget($budget_id); >- DelBasket( $basketno ); >- DelBiblio($biblionumber); >-}; >+# Cleanup >+$dbh->rollback; >-- >1.7.10.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 10275
:
18201
|
18252
|
19286
|
19306
|
19622
|
19623