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:
Jonathan Druart 2015-04-16 17:23:26 +02:00 committed by Tomas Cohen Arazi
parent 6a69b1e653
commit cc8601f486
1 changed files with 4 additions and 1 deletions

View File

@ -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");