Bugzilla – Attachment 53453 Details for
Bug 16868
Silence error t/db_dependent/Linker_FirstMatch.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16868: Jonathan Druart testing dbh code
Bug-16868-Jonathan-Druart-testing-dbh-code.patch (text/plain), 1.04 KB, created by
Mark Tompsett
on 2016-07-16 15:03:58 UTC
(
hide
)
Description:
Bug 16868: Jonathan Druart testing dbh code
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2016-07-16 15:03:58 UTC
Size:
1.04 KB
patch
obsolete
>From d800c729829884ceef0395f3f8e560729f376f6e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@koha-community.org> >Date: Fri, 15 Jul 2016 11:45:49 -0400 >Subject: [PATCH] Bug 16868: Jonathan Druart testing dbh code > >I grabbed the code from bug 14334, and will use it here. > prove t/db_dependent/Linker_FirstMatch.t >will demonstrate it works. > >Signed-off-by: Mark Tompsett <mtompset@hotmail.com> >--- > t/lib/Database.pm | 20 ++++++++++++++++++++ > 1 file changed, 20 insertions(+) > create mode 100644 t/lib/Database.pm > >diff --git a/t/lib/Database.pm b/t/lib/Database.pm >new file mode 100644 >index 0000000..c3f7b55 >--- /dev/null >+++ b/t/lib/Database.pm >@@ -0,0 +1,20 @@ >+package t::lib::Database; >+ >+use Modern::Perl; >+use C4::Context; >+use Koha::Database; >+ >+sub dbh { >+ my $dbh = C4::Context->dbh; >+ my $schema = Koha::Database->new->schema; >+ $schema->storage->txn_begin; >+ $dbh->{RaiseError} = 1; >+ return $dbh; >+} >+ >+END { >+ my $schema = Koha::Database->new->schema; >+ $schema->storage->txn_rollback; >+}; >+ >+1; >-- >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 16868
:
53154
|
53155
|
53411
|
53451
|
53452
|
53453
|
53454
|
53455
|
53549
|
53729
|
53880