Bugzilla – Attachment 46209 Details for
Bug 14097
Add unit tests to C4::UsageStats
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14097: Delete table issues before testing
Bug-14097-Delete-table-issues-before-testing.patch (text/plain), 1.03 KB, created by
Mark Tompsett
on 2016-01-04 06:30:21 UTC
(
hide
)
Description:
Bug 14097: Delete table issues before testing
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-01-04 06:30:21 UTC
Size:
1.03 KB
patch
obsolete
>From 8f36f53a535ef41a0aab71ca14e98b8f20f39ef8 Mon Sep 17 00:00:00 2001 >From: Julian FIOL <julian.fiol@biblibre.com> >Date: Mon, 4 May 2015 11:08:14 +0200 >Subject: [PATCH] Bug 14097: Delete table issues before testing > >If we delete all biblio DB, we could have some troubles with foreign keys > >Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> >--- > t/db_dependent/UsageStats.t | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/UsageStats.t b/t/db_dependent/UsageStats.t >index e8054d3..a5b4362 100644 >--- a/t/db_dependent/UsageStats.t >+++ b/t/db_dependent/UsageStats.t >@@ -18,7 +18,6 @@ use Modern::Perl; > use Test::More tests => 552; > use t::lib::Mocks qw(mock_preference); > use POSIX qw(strftime); >-use Data::Dumper; > > BEGIN { > use_ok('C4::UsageStats'); >@@ -42,6 +41,8 @@ can_ok( > my $dbh = C4::Context->dbh; > $dbh->{AutoCommit} = 0; > $dbh->{RaiseError} = 1; >+ >+$dbh->do('DELETE FROM issues'); > $dbh->do('DELETE FROM biblio'); > $dbh->do('DELETE FROM items'); > $dbh->do('DELETE FROM auth_header'); >-- >2.1.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 14097
:
38719
|
38800
|
38814
|
38946
|
38947
|
38948
|
39080
|
39085
|
39435
|
41837
|
41843
|
41844
|
46200
|
46201
|
46202
|
46203
|
46204
|
46205
|
46206
|
46207
|
46208
|
46209
|
46210
|
46211
|
46212
|
46213
|
46214
|
46215
|
47717
|
47719
|
47720
|
47721
|
47722
|
47723
|
47724
|
47725
|
47726
|
47727
|
47798
|
47799
|
47800
|
47801
|
47802
|
47803
|
47804
|
47805