Bugzilla – Attachment 29321 Details for
Bug 12470
C4::Circulations.pm needs more unit tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12470: Allow execution of UTs on a DB with items
Bug-12470-Allow-execution-of-UTs-on-a-DB-with-item.patch (text/plain), 1.46 KB, created by
Yohann Dufour
on 2014-06-27 07:14:58 UTC
(
hide
)
Description:
Bug 12470: Allow execution of UTs on a DB with items
Filename:
MIME Type:
Creator:
Yohann Dufour
Created:
2014-06-27 07:14:58 UTC
Size:
1.46 KB
patch
obsolete
>From 390f4af1be61e4f434cdb9b37f2cc6d0f19e896f Mon Sep 17 00:00:00 2001 >From: Yohann Dufour <dufour.yohann@gmail.com> >Date: Fri, 27 Jun 2014 09:13:41 +0200 >Subject: [PATCH] Bug 12470: Allow execution of UTs on a DB with items > >--- > t/db_dependent/Circulation/CheckIfIssuedToPatron.t | 1 + > t/db_dependent/Circulation/CheckValidBarcode.t | 2 +- > 2 files changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t >index 315923d..4768e9b 100644 >--- a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t >+++ b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t >@@ -21,6 +21,7 @@ my $dbh = C4::Context->dbh; > $dbh->{AutoCommit} = 0; > $dbh->{RaiseError} = 1; > >+$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM issues|); > $dbh->do(q|DELETE FROM borrowers|); > $dbh->do(q|DELETE FROM branches|); >diff --git a/t/db_dependent/Circulation/CheckValidBarcode.t b/t/db_dependent/Circulation/CheckValidBarcode.t >index 0d5396c..b7214b7 100644 >--- a/t/db_dependent/Circulation/CheckValidBarcode.t >+++ b/t/db_dependent/Circulation/CheckValidBarcode.t >@@ -18,11 +18,11 @@ my $dbh = C4::Context->dbh; > $dbh->{AutoCommit} = 0; > $dbh->{RaiseError} = 1; > >+$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM issues|); > $dbh->do(q|DELETE FROM borrowers|); > $dbh->do(q|DELETE FROM branches|); > $dbh->do(q|DELETE FROM biblio|); >-$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM categories|); > > >-- >1.9.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 12470
:
29189
|
29321
|
29577
|
29589
|
29647