Bugzilla – Attachment 29577 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 (fix the order)
Bug-12470-Allow-execution-of-UTs-on-a-DB-with-item.patch (text/plain), 1.55 KB, created by
Yohann Dufour
on 2014-07-09 07:27:43 UTC
(
hide
)
Description:
Bug 12470: Allow execution of UTs on a DB with items (fix the order)
Filename:
MIME Type:
Creator:
Yohann Dufour
Created:
2014-07-09 07:27:43 UTC
Size:
1.55 KB
patch
obsolete
>From 1ee2fdd9124d1fe2c916819887fcd477fe764465 Mon Sep 17 00:00:00 2001 >From: Yohann Dufour <dufour.yohann@gmail.com> >Date: Wed, 9 Jul 2014 09:25:05 +0200 >Subject: [PATCH] Bug 12470: Allow execution of UTs on a DB with items (fix the > order) > >Fix of the order of the removal of items and issues >--- > t/db_dependent/Circulation/CheckIfIssuedToPatron.t | 2 +- > t/db_dependent/Circulation/CheckValidBarcode.t | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t >index 4768e9b..3ae7d0d 100644 >--- a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t >+++ b/t/db_dependent/Circulation/CheckIfIssuedToPatron.t >@@ -21,8 +21,8 @@ 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 items|); > $dbh->do(q|DELETE FROM borrowers|); > $dbh->do(q|DELETE FROM branches|); > $dbh->do(q|DELETE FROM biblio|); >diff --git a/t/db_dependent/Circulation/CheckValidBarcode.t b/t/db_dependent/Circulation/CheckValidBarcode.t >index b7214b7..037e404 100644 >--- a/t/db_dependent/Circulation/CheckValidBarcode.t >+++ b/t/db_dependent/Circulation/CheckValidBarcode.t >@@ -18,8 +18,8 @@ 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 items|); > $dbh->do(q|DELETE FROM borrowers|); > $dbh->do(q|DELETE FROM branches|); > $dbh->do(q|DELETE FROM biblio|); >-- >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