Bugzilla – Attachment 24100 Details for
Bug 11457
t/db_dependent/Bookseller.t can fail when subscription table is not empty
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11457 : Clearing subscription table so tests pass correctly
Bug-11457--Clearing-subscription-table-so-tests-pa.patch (text/plain), 1.22 KB, created by
Jonathan Druart
on 2014-01-09 16:43:29 UTC
(
hide
)
Description:
Bug 11457 : Clearing subscription table so tests pass correctly
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-01-09 16:43:29 UTC
Size:
1.22 KB
patch
obsolete
>From 5f1e8ba85cb0d591915def5236356972b8ace448 Mon Sep 17 00:00:00 2001 >From: Chris Cormack <chris@bigballofwax.co.nz> >Date: Thu, 2 Jan 2014 17:15:56 +1300 >Subject: [PATCH] Bug 11457 : Clearing subscription table so tests pass > correctly > >To test >1/ Add a subscription in the serials module, with an end date before >2013-08-01 >2/ run prove -v t/db_dependent/Bookseller.t > Notice tests 22 and 23 fail >3/ Apply patch >4/ run test again >5/ Notice tests succeed > >Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de> >Tests now clean the subscription table before running >the tests, so that the will always pass. > >Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com> >--- > t/db_dependent/Bookseller.t | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/t/db_dependent/Bookseller.t b/t/db_dependent/Bookseller.t >index 133ffb5..d12f263 100644 >--- a/t/db_dependent/Bookseller.t >+++ b/t/db_dependent/Bookseller.t >@@ -35,6 +35,8 @@ $dbh->{AutoCommit} = 0; > $dbh->do(q|DELETE FROM aqorders|); > $dbh->do(q|DELETE FROM aqbasket|); > $dbh->do(q|DELETE FROM aqbooksellers|); >+$dbh->do(q|DELETE FROM subscription|); >+ > #Test AddBookseller > my $count = scalar( C4::Bookseller::GetBookSeller('') ); > my $sample_supplier1 = { >-- >1.7.10.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 11457
:
23886
|
23890
| 24100