Bugzilla – Attachment 30311 Details for
Bug 12457
The module C4::Members.pm needs more unit tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 12457: Allow UT on a non empty database
PASSED-QA-Bug-12457-Allow-UT-on-a-non-empty-databa.patch (text/plain), 1.65 KB, created by
Katrin Fischer
on 2014-07-29 21:10:45 UTC
(
hide
)
Description:
[PASSED QA] Bug 12457: Allow UT on a non empty database
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-07-29 21:10:45 UTC
Size:
1.65 KB
patch
obsolete
>From d41b62a8eea414381d14611c1fd31ceafd19041e Mon Sep 17 00:00:00 2001 >From: Yohann Dufour <dufour.yohann@gmail.com> >Date: Mon, 21 Jul 2014 09:27:17 +0200 >Subject: [PATCH] [PASSED QA] Bug 12457: Allow UT on a non empty database > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >--- > t/db_dependent/Members/GetAllIssues.t | 3 ++- > t/db_dependent/Members/GetPendingIssues.t | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Members/GetAllIssues.t b/t/db_dependent/Members/GetAllIssues.t >index c2791bc..5027b07 100644 >--- a/t/db_dependent/Members/GetAllIssues.t >+++ b/t/db_dependent/Members/GetAllIssues.t >@@ -17,10 +17,11 @@ my $dbh = C4::Context->dbh; > $dbh->{AutoCommit} = 0; > $dbh->{RaiseError} = 1; > >+$dbh->do(q|DELETE FROM issues|); > $dbh->do(q|DELETE FROM borrowers|); >+$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM branches|); > $dbh->do(q|DELETE FROM biblio|); >-$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM categories|); > > my $branchcode = 'B'; >diff --git a/t/db_dependent/Members/GetPendingIssues.t b/t/db_dependent/Members/GetPendingIssues.t >index 08051b1..1c1c683 100644 >--- a/t/db_dependent/Members/GetPendingIssues.t >+++ b/t/db_dependent/Members/GetPendingIssues.t >@@ -17,10 +17,11 @@ my $dbh = C4::Context->dbh; > $dbh->{AutoCommit} = 0; > $dbh->{RaiseError} = 1; > >+$dbh->do(q|DELETE FROM issues|); > $dbh->do(q|DELETE FROM borrowers|); >+$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM branches|); > $dbh->do(q|DELETE FROM biblio|); >-$dbh->do(q|DELETE FROM items|); > $dbh->do(q|DELETE FROM categories|); > > my $branchcode = 'B'; >-- >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 12457
:
29094
|
29173
|
29742
|
29908
|
30116
|
30117
|
30118
|
30187
|
30266
|
30309
|
30310
| 30311