Bugzilla – Attachment 31188 Details for
Bug 11672
Untranslatable report areas in step 1 of Guided Reports
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 11672: (regression test) get_report_areas gets tested
SIGNED-OFF-Bug-11672-regression-test-getreportarea.patch (text/plain), 1.97 KB, created by
Owen Leonard
on 2014-08-27 13:17:54 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 11672: (regression test) get_report_areas gets tested
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2014-08-27 13:17:54 UTC
Size:
1.97 KB
patch
obsolete
>From 38e977b29af19d7fdfaa105e0ccbe043e7692ad4 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Sun, 24 Aug 2014 02:21:52 -0300 >Subject: [PATCH] [SIGNED-OFF] Bug 11672: (regression test) get_report_areas > gets tested >Content-Type: text/plain; charset="utf-8" > >This patch introduces a unit test for the new get_report_areas functionality. > >To try it, run > $ prove t/db_dependent/Reports_Guided.t > >It is expected to have 16 tests defined, and to fail the introduced one > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >--- > t/db_dependent/Reports_Guided.t | 21 ++++++++++++++++++--- > 1 file changed, 18 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Reports_Guided.t b/t/db_dependent/Reports_Guided.t >index 6633c2f..4e2041a5 100755 >--- a/t/db_dependent/Reports_Guided.t >+++ b/t/db_dependent/Reports_Guided.t >@@ -1,11 +1,23 @@ > #!/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. > # >-# This Koha test module is a stub! >-# Add more tests here!!! >+# 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 => 15; >+use Test::More tests => 16; > > use C4::Context; > >@@ -98,6 +110,9 @@ ok( > 'attempting to run a report with an SQL syntax error returns error message (Bug 12214)' > ); > >+is_deeply( get_report_areas(), [ 'CIRC', 'CAT', 'PAT', 'ACQ', 'ACC' ], >+ "get_report_areas returns the correct array of report areas"); >+ > #End transaction > $dbh->rollback; > >-- >1.7.9.5
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 11672
:
27955
|
31125
|
31126
|
31187
|
31188
|
31189
|
31190
|
31808
|
31809
|
31810