Bugzilla – Attachment 21288 Details for
Bug 8435
new permissions on subscriptions "superserials"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8435: use a transaction for unit tests
Bug-8435-use-a-transaction-for-unit-tests.patch (text/plain), 1.17 KB, created by
Chris Cormack
on 2013-09-20 19:55:05 UTC
(
hide
)
Description:
Bug 8435: use a transaction for unit tests
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-09-20 19:55:05 UTC
Size:
1.17 KB
patch
obsolete
>From d4ff159d52a16489ae2561404c219e7fb2c5f33d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Fri, 28 Jun 2013 09:27:39 +0200 >Subject: [PATCH] Bug 8435: use a transaction for unit tests > >--- > t/db_dependent/Serials_2.t | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > >diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t >index 7c37dee..83bcbf8 100644 >--- a/t/db_dependent/Serials_2.t >+++ b/t/db_dependent/Serials_2.t >@@ -6,6 +6,10 @@ use Test::More tests => 4; > use_ok('C4::Serials'); > use_ok('C4::Budgets'); > >+my $dbh = C4::Context->dbh; >+$dbh->{AutoCommit} = 0; >+$dbh->{RaiseError} = 1; >+ > my $supplierlist=eval{GetSuppliersWithLateIssues()}; > ok(length($@)==0,"No SQL problem in GetSuppliersWithLateIssues"); > >@@ -58,8 +62,4 @@ my $subscription = GetSubscription( $subscriptionid ); > is( C4::Serials::can_edit_subscription($subscription), 1, "User can edit a subscription with an empty branchcode"); > #TODO add UT when C4::Auth->set_permissions (or setuserflags) will exist. > >- >-# cleaning >-DelSubscription( $subscription->{subscriptionid} ); >-DelBudgetPeriod($bpid); >-DelBudget($budget_id); >+$dbh->rollback; >-- >1.8.4.rc2
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 8435
:
10821
|
11377
|
11411
|
11892
|
13396
|
15673
|
16404
|
16462
|
16740
|
16750
|
16751
|
16798
|
16799
|
16801
|
16802
|
16803
|
16943
|
16944
|
19260
|
19261
|
19266
|
19268
|
20536
|
21286
|
21287
|
21288
|
21289
|
22624
|
22625
|
22626
|
22627
|
22628