Bug 10706: Add test
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
parent
6a69b1e653
commit
cc8601f486
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
use Modern::Perl;
|
||||
|
||||
use Test::More tests => 17;
|
||||
use Test::More tests => 18;
|
||||
use Test::Warn;
|
||||
|
||||
use C4::Context;
|
||||
|
|
@ -66,6 +66,9 @@ like( $report_ids[2], '/^\d+$/', "Save_report returns an id for third" );
|
|||
is( scalar( @{ get_saved_reports() } ),
|
||||
$count, "$count reports have been added" );
|
||||
|
||||
is( scalar( @{ get_saved_reports( $report_ids[0] ) } ),
|
||||
1, "filter takes report id" );
|
||||
|
||||
#Test delete_report
|
||||
is (delete_report(),undef, "Without id delete_report returns undef");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue