Bugzilla – Attachment 81387 Details for
Bug 21613
Turn strict SQL modes on for tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21613: Add a test
Bug-21613-Add-a-test.patch (text/plain), 1.57 KB, created by
Katrin Fischer
on 2018-10-28 09:58:38 UTC
(
hide
)
Description:
Bug 21613: Add a test
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2018-10-28 09:58:38 UTC
Size:
1.57 KB
patch
obsolete
>From 8d9a02cdd72113a73db22302eeb800a4c92f57b1 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 18 Oct 2018 20:06:03 -0300 >Subject: [PATCH] Bug 21613: Add a test > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > t/db_dependent/Koha/Database.t | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 t/db_dependent/Koha/Database.t > >diff --git a/t/db_dependent/Koha/Database.t b/t/db_dependent/Koha/Database.t >new file mode 100644 >index 0000000000..ca121de86d >--- /dev/null >+++ b/t/db_dependent/Koha/Database.t >@@ -0,0 +1,24 @@ >+#!/usr/bin/perl >+ >+# This file is part of Koha. >+# >+# Koha is free software; you can redistribute it and/or modify it >+# under the terms of the GNU General Public License as published by >+# the Free Software Foundation; either version 3 of the License, or >+# (at your option) any later version. >+# >+# Koha is distributed in the hope that it will be useful, but >+# WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with Koha; if not, see <http://www.gnu.org/licenses>. >+ >+use Modern::Perl; >+use Test::More tests => 1; >+use C4::Context; >+ >+my $dbh = C4::Context->dbh; >+my $sql_mode = $dbh->selectrow_array(q|SELECT @@SQL_MODE|); >+like( $sql_mode, qr{STRICT_TRANS_TABLES}, 'Strict SQL modes must be turned on for tests' ); >-- >2.11.0
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 21613
:
80887
|
80888
|
80896
|
80897
|
80904
|
80936
|
80937
| 81387 |
81388
|
81389
|
81390