Bugzilla – Attachment 131005 Details for
Bug 30129
500 error when search reports by date
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30129: Add test
Bug-30129-Add-test.patch (text/plain), 1.56 KB, created by
Fridolin Somers
on 2022-02-22 01:11:19 UTC
(
hide
)
Description:
Bug 30129: Add test
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-02-22 01:11:19 UTC
Size:
1.56 KB
patch
obsolete
>From 88c2759abdd3d3c064ff20b435f0563aaf4a8e54 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 21 Feb 2022 12:59:40 +0100 >Subject: [PATCH] Bug 30129: Add test > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Reports/Guided.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Reports/Guided.t b/t/db_dependent/Reports/Guided.t >index 28ef81dbfd..93e0635229 100755 >--- a/t/db_dependent/Reports/Guided.t >+++ b/t/db_dependent/Reports/Guided.t >@@ -24,6 +24,7 @@ use Test::Warn; > use t::lib::TestBuilder; > use C4::Context; > use Koha::Database; >+use Koha::DateUtils qw( dt_from_string ); > use Koha::Items; > use Koha::Reports; > use Koha::Notice::Messages; >@@ -185,7 +186,7 @@ subtest 'GetParametersFromSQL+ValidateSQLParameters' => sub { > }; > > subtest 'get_saved_reports' => sub { >- plan tests => 17; >+ plan tests => 18; > my $dbh = C4::Context->dbh; > $dbh->do(q|DELETE FROM saved_sql|); > $dbh->do(q|DELETE FROM saved_reports|); >@@ -220,6 +221,8 @@ subtest 'get_saved_reports' => sub { > > ok( 0 < scalar @{ get_saved_reports( $report_ids[0] ) }, "filter takes report id" ); > >+ ok( 0 < scalar @{ get_saved_reports({date => dt_from_string->ymd }) }, "filter takes date" ); >+ > my $r1 = Koha::Reports->find($report_ids[0]); > $r1 = update_sql($r1->id, { %{$r1->unblessed}, borrowernumber => $r1->borrowernumber, name => 'Just another report' }); > is( $r1->cache_expiry, 300, 'cache_expiry has the correct default value, from DBMS' ); >-- >2.35.1
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 30129
:
130825
|
130904
|
130958
|
130959
| 131005