Bug 16224: Fix t/db_dependent/Reports_Guided.t
authorJulian Maurice <julian.maurice@biblibre.com>
Thu, 7 Apr 2016 15:03:47 +0000 (17:03 +0200)
committerBrendan Gallagher <bredan@bywatersolutions.com>
Wed, 20 Apr 2016 19:48:44 +0000 (19:48 +0000)
commit08017f89f150394b6224fafb64fe8d12fc146ff1
tree5531953b0bf6d7d2f5d37b16f4c6f25f679a683e
parent41549bf3f4aa1f87060c7e27ab27e6932359211c
Bug 16224: Fix t/db_dependent/Reports_Guided.t

This test:

is( scalar @{ get_saved_reports( $report_ids[0] ) }, 1,
"filter takes report id" );

can fail when $report_ids[0] is a substring of some saved_sql fields
from other reports (reports that have a different id than
$report_ids[0]).
We can only be sure that get_saved_reports will return at least 1
report.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan Gallagher <bredan@bywatersolutions.com>
t/db_dependent/Reports_Guided.t